General and Administrative Expenses. General and administrative expenses increased by $101,336 or 4%, to $2,408,425 in the year ended December 31, 2021 from $2,307,089 in the year ended December 31, 2020. The increase was due primarily to higher investor relations spending of $243,497, professional services paid in stock of $207,980 and higher other costs of $15,759, partly offset by lower stock-based compensation costs of $227,932, as a majority of stock option grants in 2020 vested immediately, and chief executive officer search fees of $137,968 in the year ended December 31, 2020. We expect slightly higher general and administrative expenses in 2022.
Sales and Marketing Expenses. Sales and marketing expenses were $512,807 in the year ended December 31, 2021 compared to $40,000 in the year ended December 31, 2020. The increase was due primarily to the hiring of a Vice President of Business Development in the first quarter of 2021 and subsequent spending as we work towards commercializing our B-TRAN™ technology. The increase included personnel costs of $282,734, stock-based compensation expense of $99,281 and all other sales and marketing costs of $90,792. We expect higher sales and marketing expenses in 2022 as we engage more broadly with prospective customers and commercialize our B-TRAN™ technology.
Loss from Operations. Our loss from operations for the year ended December 31, 2021 was $4,848,975 or 19% higher than the $4,067,982 loss from operations for the year ended December 31, 2020, driven by the factors discussed above.
Other Income (Expenses). Other income was $78,706 for the year ended December 31, 2021 due to a $91,407 gain on the forgiveness of our PPP Loan (as defined below) partly offset by interest expense of $12,701. Other expenses were $3,725,915 for the year ended December 31, 2020 due to non-cash warrant inducement expense of $3,720,866 in connection with the Early Warrant Exercise Transaction (as defined below) and interest expense of $5,049.
Net Loss. Our net loss decreased by $3,023,628, or 39%, to $4,770,269 for the year ended December 31, 2021 from a net loss of $7,793,897 for the year ended December 31, 2020 for the reasons discussed above.
Liquidity and Capital Resources
We currently generate grant revenue only. We expect to generate grant revenue and potentially commercial revenue in 2022. We have incurred losses since inception. We have funded our operations to date through the sale of common stock and warrants.
As of December 31, 2021 and 2020, we had cash and cash equivalents of $23,170,149 and $3,157,256, respectively. Our net working capital and long-term debt at December 31, 2021 were $22,904,440 and $0, respectively.
We believe that our cash and cash equivalents on hand will be sufficient to meet our ongoing liquidity needs for at least the next 12 months. Additional future financing may be necessary to fund our operations and there can be no assurance that, if needed, we will be able to secure additional debt or equity financing on terms acceptable to us or at all. Although we believe we have adequate sources of liquidity over the long term, the success of our operations, the global economic outlook, and the pace of sustainable growth in our markets could each impact our business and liquidity.
Operating activities in the year ended December 31, 2021 resulted in cash outflows of $4,280,864, which were due to the net loss for the period of $4,770,269, unfavorable balance sheet timing of $137,573 and a non-cash gain on the forgiveness of our PPP Loan of $91,407, partly offset by other non-cash items including stock-based compensation of $352,313, stock issued for services of $207,980, depreciation and amortization of $157,564 and patent impairment charges of $528.
Operating activities in the year ended December 31, 2020 resulted in cash outflows of $3,019,032, which were due to the net loss for the period of $7,793,897 and slightly unfavorable balance sheet timing of $7,461, partly offset by non-cash items including warrant inducement expense of $3,720,866, stock-based compensation of $868,648, depreciation and amortization of $122,152, stock issued for services of $50,000 and patent impairment charges of $20,660.
We expect an increase in cash outflows from operating activities in 2022 as we accelerate development and commercialization of our B-TRAN™ technology.
Investing activities in the years ended December 31, 2021 and 2020 resulted in cash outflows of $236,935 and $67,160, respectively. For the year ended December 31, 2021, cash outflows for the acquisition of intangible assets were $192,668 and capital expenditures were $44,267. For the year ended December 31, 2020, cash outflows for the acquisition of intangible assets were $53,220 and capital expenditures were $13,940.