Sales and Marketing Expenses. Sales and marketing expenses increased by $339,524, or 66%, to $852,331 in the year ended December 31, 2022 from $512,807 in the year ended December 31, 2021. The increase was due primarily to the higher personnel costs of $172,005, stock-based compensation expense of $69,243, travel costs of $32,873, professional fees of $26,342 and other spending of $39,061 as we work towards commercializing our B-TRAN™ technology. We expect higher sales and marketing expenses in 2023 as we engage more broadly with prospective customers and launch our first two commercial products.
Loss from Operations. Our loss from operations for the year ended December 31, 2022 was $7,342,959 or 51% higher than the $4,848,975 loss from operations for the year ended December 31, 2021, driven by the factors discussed above.
Other Income. Other income increased by $74,903 to $153,609 for the year ended December 31, 2022 from $78,706 for the year ended December 31, 2021. Other income for the year ended December 31, 2022 related to interest income as a result of the impact of higher interest rates on our money market account. Other income for the year ended December 31, 2021 was due to a $91,407 gain on the forgiveness of our PPP Loan (as defined below) partly offset by interest expense of $12,701.
Net Loss. Our net loss increased by $2,419,081, or 51%, to $7,189,350 for the year ended December 31, 2022 from a net loss of $4,770,269 for the year ended December 31, 2021 for the reasons discussed above.
Liquidity and Capital Resources
In 2022, we generated grant revenue only. In 2023, we expect to generate grant revenue as well as initial commercial revenue. We have incurred losses since inception. We have funded our operations to date primarily through the sale of common stock.
As of December 31, 2022 and 2021, we had cash and cash equivalents of $16,345,623 and $23,170,149, respectively. Our net working capital and long-term debt at December 31, 2022 were $16,453,606 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, 2022 resulted in cash outflows of $6,383,914, which were due to the net loss for the period of $7,189,350 and unfavorable balance sheet timing of $458,479, partly offset by non-cash items including stock-based compensation of $975,801, depreciation and amortization of $187,077, stock issued for services of $100,100 and the write-off of long-lived assets of $937.
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.
We expect an increase in cash outflows from operating activities in 2023 as we commercialize our B-TRAN™ technology, including the launch of our first two commercial products.
Investing activities in the years ended December 31, 2022 and 2021 resulted in cash outflows of $312,740 and $236,935, respectively. For the year ended December 31, 2022, cash outflows for the acquisition of intangible assets were $130,089 and capital expenditures were $182,651, primarily for lab testing equipment. .For the year ended December 31, 2021, cash outflows for the acquisition of intangible assets were $192,668 and capital expenditures were $44,267.
Financing activities in the year ended December 31, 2022 resulted in cash outflows of $127,872 for the payment of withholding taxes on the vesting of restricted stock units. Financing activities in the year ended December 31, 2021 resulted in cash inflows of $21,204,609 from the net proceeds from our Public Offering and $3,326,083 from the exercise of warrants and stock options.