In the second quarter and six months ended June 30, 2021, we repurchased 147,016 shares at an average cost of $163.50 per share, for a total of $24.0 million compared to no repurchases in the second quarter of 2020 and repurchases of approximately 3.3 million shares at an average cost of $90.09 per share, for a total of $300.0 million in the six months ended June 30, 2020. From the inception of the plan in 1994 through June 30, 2021, we have repurchased approximately 33.0 million shares at an average cost of $48.72 per share. We expect to continue to be opportunistic in our approach to repurchasing shares of our common stock.
Liquidity
Our primary sources of liquidity are funds generated from operations, cash on hand and our $1.5 billion revolving credit facility. Our total outstanding debt at June 30, 2021 and December 31, 2020 was $1.66 billion. As of June 30, 2021, we had no outstanding borrowings and $31.2 million of letters of credit issued on the revolving credit facility. As of June 30, 2021, we had $727.6 million in cash and cash equivalents and our net debt-to-total capital ratio (net debt-to-total capital is calculated as total debt, net of cash, divided by total Reliance stockholders’ equity plus total debt, net of cash) was 14.0%, down from 15.8% as of December 31, 2020.
On September 3, 2020, we entered into a $1.5 billion unsecured five-year Amended and Restated Credit Agreement (“Credit Agreement”) that amended and restated our existing $1.5 billion unsecured revolving credit facility. At June 30, 2021, borrowings under the Credit Agreement were available at variable rates based on LIBOR plus 1.25% or the bank prime rate plus 0.25% and we currently pay a commitment fee at an annual rate of 0.20% on the unused portion of the revolving credit facility. The applicable margins over LIBOR and base rate borrowings, along with commitment fees, are subject to adjustment every quarter based on our leverage ratio, as defined in the Credit Agreement. All borrowings under the Credit Agreement may be prepaid without penalty. Our Credit Agreement includes provisions to change the reference rate to the then-prevailing market convention for similar agreements if a replacement rate for LIBOR is necessary during its term.
A revolving credit facility with a credit limit of $8.4 million is in place for an operation in Asia with an outstanding balance of $4.7 million and $5.4 million as of June 30, 2021 and December 31, 2020, respectively.
Capital Resources
On November 20, 2006, we entered into an indenture (the “2006 Indenture”) for the issuance of $600.0 million of unsecured debt securities. The total issuance was comprised of (a) $350.0 million aggregate principal amount of senior unsecured notes bearing interest at the rate of 6.20% per annum, which matured and were repaid on November 15, 2016 and (b) $250.0 million aggregate principal amount of senior unsecured notes bearing interest at the rate of 6.85% per annum, maturing on November 15, 2036.
On April 12, 2013, we entered into an indenture (the “2013 Indenture”) for the issuance of $500.0 million aggregate principal amount of senior unsecured notes at the rate of 4.50% per annum, maturing on April 15, 2023.
On August 3, 2020, we entered into an indenture (the “2020 Indenture” and, together with the 2013 Indenture and 2006 Indenture, the “Indentures”) for the issuance of $900.0 million of unsecured debt securities. The total issuance was comprised of (a) $400.0 million aggregate principal amount of senior unsecured notes bearing interest at the rate of 1.30% per annum, maturing on August 15, 2025 and (b) $500.0 million aggregate principal amount of senior unsecured notes bearing interest at the rate of 2.15% per annum, maturing on August 15, 2030.
Under the Indentures, the notes are senior unsecured obligations and rank equally in right of payment with all of our existing and future unsecured and unsubordinated obligations. If we experience a change in control accompanied by a downgrade in our credit rating, we will be required to make an offer to repurchase each series of the notes at a price equal to 101% of their principal amount plus accrued and unpaid interest.
Various industrial revenue bonds had combined outstanding balances of $8.3 million as of June 30, 2021 and December 31, 2020, and have maturities through 2027.