Inc. The net realized loss on investments of $5,347,409 for the year ended December 31, 2020 was primarily due to the loss on our senior secured loan to Aginity, Inc. The net realized gain on investments of $609,031 for the year ended December 31, 2019 was primarily due to the gain on the sale of preferred stock warrant in Drawbridge, Inc. and redemption of warrant for membership interest in Mobius Imagine, LLC, partially offset by a loss our warrants for preferred stock on RedSeal, Inc.
Net Change in Unrealized Appreciation (Depreciation) on Investments
Net change in unrealized depreciation on investments of $3,045,344 for the year ended December 31, 2021 was primarily due to decreases in the fair value of senior secured loans to Pivot3 Holdings, Inc. and Aginity Inc., and our warrants for common stock in CareCloud, Inc. This increase was offset by the increase in the fair value of our senior secured loans to Mojix, Inc. and our units of Brilliant Earth LLC. Net change in unrealized appreciation on investments of $14,257,592 for the year ended December 31, 2020 was primarily due to increases in the fair value of our senior secured loans to Aria Systems, Inc. and our warrants for preferred stock or common stock of Ouster, Inc., MTBC, Inc., and Aspen Group Inc. This increase was offset by the decreases in the fair value of senior secured loans to Circadence Corporation and Pivot3, Inc., and our preferred stock in MTBC, Inc. Net change in unrealized depreciation on investments of $9,416,462 for the year ended December 31, 2019 was primarily due to increases in the fair value of our senior secured loans to eSilicon Corporation and Realwear, Inc., our preferred stock in Aria Systems, Inc. and our warrants for preferred stock of Aria Systems, Inc. and eSilicon Corporation. This increase was offset by the decreased in the fair value of senior secured loans to Aginity, Inc., CareCloud Corporation, and Mojix Inc., and our warrants for common or preferred stock of All Clear ID, Inc., Mojix Inc. and zSpace, Inc.
Net Increase in Net Assets Resulting from Operations
We had a net increase in net assets resulting from operations of $45,618,710 for the year ended December 31, 2021, as compared to a net increase in net assets resulting from operations of $46,979,900 and $27,646,400 for the years ended December 31, 2020 and December 31, 2019, respectively. The net decrease in net assets resulting from operations for the year ended December 31, 2021 from the year ended December 31, 2020 is attributable to an increase in operating expenses, particularly increases in interest expense and debt financing fees due to an increase in borrowings used, as well as net change in unrealized position on investments recorded at a loss compared to a gain in the prior year. The decrease is partially offset by an increase in interest and dividend income. The net increase in net assets resulting from operations for the year ended December 31, 2020 from the year ended December 31, 2019 is attributable to increases in the fair value of our senior secured loans to Aria Systems, Inc. and our warrants for preferred stock or common stock of Ouster, Inc., MTBC, Inc., and Aspen Group Inc. The net increase in net assets resulting from operations for the year ended December 31, 2019 from the year ended December 31, 2018 is attributable to increased interest income earned on our portfolio investments and the gain on our warrants for preferred stock or units on Drawbridge, Inc. and Mobius Imagine, LLC.
Financial Condition, Liquidity and Capital Resources
We generate cash primarily from the net proceeds of the offering of our securities and cash flows from our operations, including investment sales and repayments as well as income earned on investments and cash equivalents. We may also fund a portion of our investments through borrowings under the Credit Agreement (discussed below). We expect that we may also generate cash from any financing arrangements we may enter into in the future and any future offerings of our equity or debt securities. We may fund a portion of our investments through borrowings from banks and issuances of senior securities, which may be secured or unsecured, through registered offerings or private placements. Our primary use of funds is to make investments in eligible portfolio companies, pay our operating expenses and make distributions to holders of our common stock.
As of December 31, 2021 and December 31, 2020, our asset coverage ratio was 582% and 376%, respectively.
During the year ended December 31, 2021, cash and cash equivalents decreased to $4,696,693, from $14,886,246 as of December 31, 2020. This decrease was primarily the result of the purchase of investments in portfolio companies and U.S. Treasury Bills as well as repayments under our Credit Facilities and was partially offset by repayments of investments in portfolio companies, the maturity of U.S. Treasury Bills, the issuance of common stock, proceeds from our 2026 Senior Notes (as defined below) and borrowings under our Credit Facilities.
During the year ended December 31, 2020, cash and cash equivalents decreased to $14,886,246, from $45,799,672 as of December 31, 2019. This decrease was primarily the result of the purchase of investments in portfolio companies and U.S. Treasury Bills as well