Biggest changeThese unallocated costs include stock-based compensation expense, research and development costs, and general and administrative costs, such as legal and accounting. 70 Results of Operations The following table summarizes our consolidated statements of operations data (in thousands): Years Ended December 31, 2022 2021 2020 Revenue $ 1,905,871 $ 1,541,889 $ 1,092,673 Cost of revenue (1) 408,549 339,404 352,547 Gross profit 1,497,322 1,202,485 740,126 Operating expenses: Sales and marketing (1) 702,511 614,512 683,701 Research and development (1) 359,679 387,487 560,660 General and administrative (1) 596,333 611,532 669,444 Total operating expenses 1,658,523 1,613,531 1,913,805 Loss from operations (161,201) (411,046) (1,173,679) Interest income 20,309 1,607 4,680 Interest expense (4,058) (3,640) (14,139) Other income (expense), net (216,077) (75,415) 4,111 Loss before provision for (benefit from) income taxes (361,027) (488,494) (1,179,027) Provision for (benefit from) income taxes 10,067 31,885 (12,636) Net loss (371,094) (520,379) (1,166,391) Less: Net income attributable to noncontrolling interests 2,611 — — Net loss attributable to common stockholders $ (373,705) $ (520,379) $ (1,166,391) ———— (1) Includes stock-based compensation expense as follows (in thousands): Years Ended December 31, 2022 2021 2020 Cost of revenue $ 44,061 $ 68,546 $ 139,627 Sales and marketing 196,301 242,910 398,205 Research and development 93,871 150,298 357,063 General and administrative 230,565 316,461 375,807 Total stock-based compensation expense (i) $ 564,798 $ 778,215 $ 1,270,702 ———— (i) On September 30, 2020, in connection with our Direct Listing, we incurred $769.5 million and $8.4 million of stock-based compensation using the accelerated attribution method related to the satisfaction of the performance-based vesting condition for RSUs and growth units, respectively, that had satisfied the service-based vesting condition as of such date. 71 The following table sets forth the components of our consolidated statements of operations data as a percentage of revenue: Years Ended December 31, 2022 2021 2020 Revenue 100 % 100 % 100 % Cost of revenue 21 22 32 Gross profit 79 78 68 Operating expenses: Sales and marketing 37 40 63 Research and development 19 25 51 General and administrative 31 40 61 Total operating expenses 87 105 175 Loss from operations (8) (27) (107) Interest income 1 — — Interest expense — — (1) Other income (expense), net (12) (5) — Loss before provision for (benefit from) income taxes (19) (32) (108) Provision for (benefit from) income taxes 1 2 (1) Net loss (20) (34) (107) Less: Net income attributable to noncontrolling interests — — — Net loss attributable to common stockholders (20) % (34) % (107) % Comparison of the Years Ended December 31, 2022 and 2021 Revenue Years Ended December 31, Change 2022 2021 Amount % Revenue: Government $ 1,071,776 $ 897,356 $ 174,420 19 % Commercial 834,095 644,533 189,562 29 % Total revenue $ 1,905,871 $ 1,541,889 $ 363,982 24 % Revenue increased by $364.0 million, or 24%, for the year ended December 31, 2022 compared to 2021.
Biggest changeThese unallocated or noncash costs include stock-based compensation expense, research and development costs, and general and administrative costs, such as legal and accounting costs. 72 Results of Operations The following table summarizes our consolidated statements of operations data (in thousands): Years Ended December 31, 2023 2022 2021 Revenue $ 2,225,012 $ 1,905,871 $ 1,541,889 Cost of revenue 431,105 408,549 339,404 Gross profit 1,793,907 1,497,322 1,202,485 Operating expenses: Sales and marketing 744,992 702,511 614,512 Research and development 404,624 359,679 387,487 General and administrative 524,325 596,333 611,532 Total operating expenses 1,673,941 1,658,523 1,613,531 Income (loss) from operations 119,966 (161,201) (411,046) Interest income 132,572 20,309 1,607 Interest expense (3,470) (4,058) (3,640) Other income (expense), net (11,977) (216,077) (75,415) Income (loss) before provision for income taxes 237,091 (361,027) (488,494) Provision for income taxes 19,716 10,067 31,885 Net income (loss) 217,375 (371,094) (520,379) Less: Net income attributable to noncontrolling interests 7,550 2,611 — Net income (loss) attributable to common stockholders $ 209,825 $ (373,705) $ (520,379) The following table sets forth the components of our consolidated statements of operations data as a percentage of revenue: Years Ended December 31, 2023 2022 2021 Revenue 100 % 100 % 100 % Cost of revenue 19 21 22 Gross margin 81 79 78 Operating expenses: Sales and marketing 34 37 40 Research and development 18 19 25 General and administrative 24 31 40 Total operating expenses 76 87 105 Income (loss) from operations 5 (8) (27) Interest income 6 1 — Interest expense — — — Other income (expense), net — (12) (5) Income (loss) before provision for income taxes 11 (19) (32) Provision for income taxes 1 1 2 Net income (loss) 10 (20) (34) Less: Net income attributable to noncontrolling interests 1 — — Net income (loss) attributable to common stockholders 9 % (20) % (34) % 73 Comparison of the Years Ended December 31, 2023 and 2022 Revenue Years Ended December 31, Change 2023 2022 Amount % Revenue: Government $ 1,222,215 $ 1,071,776 $ 150,439 14 % Commercial 1,002,797 834,095 168,702 20 % Total revenue $ 2,225,012 $ 1,905,871 $ 319,141 17 % Revenue increased by $319.1 million, or 17%, for the year ended December 31, 2023 compared to 2022.
In instances where the timing of revenue recognition differs from the timing of payment, we elected to apply 77 the practical expedient in accordance with ASC 606 to not adjust contract consideration for the effects of a significant financing component as we expect, at contract inception, that the period between when promised goods and services are transferred to the customer and when the customer pays for those goods and services will be one year or less.
In instances where the timing of revenue recognition differs from the timing of payment, we elected to apply the practical expedient in accordance with ASC 606 to not adjust contract consideration for the effects of a significant financing component as we expect, at contract inception, that the period between when promised goods and services are transferred to the customer and when the customer pays for those goods and services will be one year or less.
Segments We have two operating segments, commercial and government, which were determined based on the manner in which the chief operating decision maker (“CODM”), who is our chief executive officer, manages our operations for purposes of allocating resources and evaluating performance. Various factors, including our organizational and management reporting structure and customer type, were considered in determining these operating segments.
Segments We have two operating segments, commercial and government, which were determined based on the manner in which the chief operating decision maker, who is our Chief Executive Officer, manages our operations for purposes of allocating resources and evaluating performance. Various factors, including our organizational and management reporting structure and customer type, were considered in determining these operating segments.
Because of this requirement, we have concluded that the software subscriptions and O&M services, which together we refer to as our On-Premises Software, are highly interdependent and interrelated and represent a single distinct performance obligation within the context of the contract. Revenue is generally recognized over the contract term on a ratable basis.
Because of this requirement, we 78 have concluded that the software subscriptions and O&M services, which together we refer to as our On-Premises Software, are highly interdependent and interrelated and represent a single distinct performance obligation within the context of the contract. Revenue is generally recognized over the contract term on a ratable basis.
Additionally, we exclude employer payroll taxes related to stock-based compensation as it is difficult to predict and outside of our control. 67 Our definitions may differ from the definitions used by other companies and therefore comparability may be limited. In addition, other companies may not publish these or similar metrics.
Additionally, we exclude employer payroll taxes related to stock-based compensation as it is difficult to predict and outside of our control. Our definitions may differ from the definitions used by other companies and therefore comparability may be limited. In addition, other companies may not publish these or similar metrics.
Cost of Revenue Cost of revenue primarily includes salaries, stock-based compensation expense, and benefits for personnel involved in performing O&M and professional services, as well as field service representatives, third-party cloud hosting services, travel costs, allocated overhead, and other direct costs.
Cost of Revenue Cost of revenue primarily includes salaries, stock-based compensation expense, and benefits for personnel involved in performing O&M and professional services, as well as field-service representatives, third-party cloud hosting services, hardware costs, travel costs, allocated overhead, and other direct costs.
Professional Services Our professional services support the customers’ use of the software and include, as needed, on-demand user support, user-interface configuration, training, and ongoing ontology and data modeling support. Professional services contracts typically include the provision of on-demand professional services for the duration of the contractual term.
Professional Services Our professional services support the customers’ use of the software platforms and include, as needed, on-demand user support, user-interface configuration, training, and ongoing ontology and data modeling support. Professional services contracts typically include the provision of on-demand professional services for the duration of the contractual term.
Research and Development Our research and development efforts are aimed at continuing to develop and refine our platforms, including adding new features and modules, increasing their functionality, and enhancing the usability of our platforms.
Research and Development Our research and development efforts are aimed at continuing to develop and refine our offerings, including adding new platforms, features, and modules, increasing their functionality, and enhancing the usability of our platforms.
We exclude stock-based compensation, which is a non-cash expense, from these non-GAAP financial measures because we believe that excluding this item provides meaningful supplemental information regarding operational performance and provides useful information to investors and others in understanding and evaluating our operating results in the same manner as our management team.
We exclude stock-based compensation, which is a noncash expense, from these non-GAAP financial measures because we believe that excluding this item provides meaningful supplemental information regarding operational performance and provides useful information to investors and others in understanding and evaluating our operating results in the same manner as our management team.
Item 1A. Risk Factors included in this Annual Report on Form 10-K. Expansion of Access to Platforms The speed with which our platforms can be deployed has significantly expanded the range of potential customers with which we plan on partnering over the long term.
Item 1A. Risk Factors” included in this Annual Report on Form 10-K. Expansion of Access to Platforms The speed with which our platforms can be deployed has significantly expanded the range of potential customers with which we plan on partnering over the long term.
Foreign Currency Exchange Rates Exchange rates are subject to significant and rapid fluctuations due to a number of factors, including interest rate changes and political and economic uncertainty which may adversely affect our results of operations or financial position. Our contracts with customers are primarily denominated in U.S. dollars.
Foreign Currency Exchange Rates Exchange rates are subject to significant and rapid fluctuations due to a number of factors, including interest rate changes, monetary policy changes, and political and economic uncertainty which may adversely affect our results of operations or financial position. Our contracts with customers and vendors are primarily denominated in U.S. dollars.
Significant Accounting Policies in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K. 76 Revenue Recognition We generate revenue from the sale of subscriptions to access our software Palantir Cloud and On-Premises Software, with ongoing O&M services and professional services.
Significant Accounting Policies in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K. Revenue Recognition We generate revenue from the sale of subscriptions to access our software platforms via Palantir Cloud and On-Premises Software, with ongoing O&M services and professional services.
Palantir Cloud Our Palantir Cloud subscriptions grant customers the right to access the software functionality in a hosted environment controlled by Palantir and are sold together with stand-ready O&M services, as further described below. We promise to provide continuous access to the hosted software throughout the contract term.
Palantir Cloud Our Palantir Cloud subscriptions grant customers the right to access the software functionality in a hosted environment controlled by Palantir and are sold together with stand-ready O&M services, as further described below. We agree to provide 70 continuous access to our hosted software throughout the contract term.
Further, these metrics have certain limitations, as they do not include the impact of certain expenses that are reflected in our consolidated statement of operations.
Further, these metrics have certain limitations, as they do not include the impact of certain expenses that are reflected in our consolidated statements of operations.
We encourage investors and others to review our business, results of operations, and financial information in its entirety, not to rely on any single financial measure, and to view these non-GAAP measures in conjunction with the most directly comparable GAAP financial measures.
We encourage investors and others to review our business, results of operations, and financial information in their 69 entirety, not to rely on any single financial measure, and to view these non-GAAP measures in conjunction with the most directly comparable GAAP financial measures.
We use it, in part, to evaluate the performance of, and allocate resources to, each of our operating segments, which excludes certain operating expenses that are not allocated to operating segments because they are separately managed at the consolidated corporate level.
We use it, in part, to evaluate the performance of, and allocate resources to, each of our operating segments, which excludes certain operating expenses that are not allocated to operating segments because they are separately managed at the consolidated corporate level, or are noncash costs.
Total remaining deal value excludes all or some portion of the value of certain commercial contracts as a result of our ongoing assessments of customers’ financial condition, including the consideration of such customers’ ability and intention to pay, and whether such contracts continue to meet the criteria for revenue recognition, among other factors.
Further, total remaining deal value may exclude all or some portion of the value of certain commercial contracts as a result of our ongoing assessments of customers’ financial condition, including the consideration of such customers’ ability and intention to pay, and whether such contracts continue to meet the criteria for revenue recognition, among other factors.
As a result, current macroeconomic conditions may continue to impact our ability to realize the full value of our commercial contracts with such early- or growth-stage customers. For additional information see Note 4. Investments and Fair Value Measurements in the consolidated financials statements included elsewhere in this Annual Report on Form 10-K.
As a result, current macroeconomic conditions have impacted, and may continue to impact, our ability to realize the full value of our commercial contracts with 68 such early- or growth-stage customers. For additional information, see Note 4. Investments and Fair Value Measurements in the consolidated financial statements included elsewhere in this Annual Report on Form 10-K.
(2) The contractual commitment amounts under operating leases in the table above are primarily related to facility and equipment leases. Operating lease commitments are reflected net of $120.8 million of sublease income from tenants in certain of our leased facilities. Refer to Note 7.
(2) The contractual commitment amounts under operating leases in the table above are primarily related to facility and equipment leases. Operating lease commitments are reflected net of $102.4 million of sublease income from tenants in certain of our leased facilities. Refer to Note 7.
We exclude stock-based compensation as it is a non-cash expense. We believe that our contribution margin provides an important measure of the efficiency of our operations over time.
We exclude stock-based compensation as it is a noncash expense. We believe that our contribution margin provides an important measure of the efficiency of our operations over time.
Contract Liabilities The timing of customer billing and payment relative to the start of the service period varies from contract to contract; however, we bill many of our customers in advance of the provision of services under our contracts, resulting in contract liabilities consisting of either deferred revenue or customer deposits.
Contract Liabilities The timing of customer billings and payments relative to the start of the service period varies from contract to contract; however, we bill many of our customers in advance of the provision of services under our contracts, resulting in contract liabilities consisting of either deferred revenue or customer deposits.
We promise to provide continuous access to the hosted software throughout the contract term. Revenue associated with Palantir Cloud subscriptions is generally recognized over the contract term on a ratable basis, which is consistent with the transfer of control of the Palantir Cloud services to the customer.
We agree to provide continuous access to our hosted software platforms throughout the contract term. Revenue associated with Palantir Cloud subscriptions is generally recognized over the contract term on a ratable basis, which is consistent with the transfer of control of the Palantir Cloud services to the customer.
GAAP). For additional information see Note 4. Investments and Fair Value Measurements and Note 14. Business Combinations in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K.
GAAP) that was reported in 2022. For additional information see Note 4. Investments and Fair Value Measurements and Note 14. Business Combinations in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K.
When calculating the total remaining deal value of government contracts, we do not include government contracts known as IDIQ contracts, totaling $2.8 billion, as of December 31, 2022, that we have been awarded, but where the funding of such contracts has not yet been determined. The funding of these contracts is not guaranteed.
When calculating the total remaining deal value of government contracts, we do not include government contracts known as IDIQ contracts, totaling $4.1 billion, as of December 31, 2023, that we have been awarded, but where the funding of such contracts has not yet been determined. The funding of these contracts is not guaranteed.
Research and development costs are expensed as incurred. 69 We plan to continue to invest in personnel to support our research and development efforts. As a result, we expect that research and development expenses will increase in absolute dollars for the foreseeable future as we continue to invest to support these activities.
We plan to continue to invest in personnel to support our research and development efforts. As a result, we expect that research and development expenses will increase in absolute dollars for the foreseeable future as we continue to invest to support these activities.
Sales and marketing costs primarily include salaries, stock-based compensation expense, and benefits for our sales force and personnel involved in sales functions, executing on pilots and customer growth activities; as well as third-party cloud hosting services for our pilots, marketing and sales event-related costs, travel costs, and allocated overhead. Sales and marketing costs are generally expensed as incurred.
Sales and marketing costs primarily include salaries, stock-based compensation expense, commissions, and benefits for our sales force and personnel involved in sales functions, executing on pilots, including bootcamps, and customer growth activities; as well as third-party cloud hosting services for our pilots, marketing and sales event-related costs, travel costs, and allocated overhead.
We expect that sales and marketing expenses will increase in absolute dollars as we continue to invest in our potential and current customers, in growing our business, sales force, and enhancing our brand awareness.
Sales and marketing costs are generally expensed as incurred. We expect that sales and marketing expenses will increase in absolute dollars as we continue to invest in our potential and current customers, in growing our business, in our sales force, and in enhancing our brand awareness.
Research and development costs primarily include salaries, stock-based compensation expense, and benefits for personnel involved in performing the activities to develop and refine our platforms, internal use third-party cloud hosting services and other IT-related costs, travel costs, and allocated overhead.
Research and development costs primarily include salaries, stock-based compensation expense, and benefits for personnel involved in performing the activities to develop and refine our platforms and products, as well as third-party cloud hosting services and other IT-related costs, travel costs, and allocated overhead. Research and development costs are expensed as incurred.
Total remaining deal value presumes the exercise of all contract options and no termination of contracts; however, the majority of our contracts are subject to termination provisions, including for convenience, and there can be no guarantee that contracts are not terminated or that contract options will be exercised.
However, the majority of our contracts are subject to termination provisions, including for convenience, and there can be no guarantee that contracts are not terminated or that contract options will be exercised.
The increases were partially offset by a decrease of $31.0 million in stock-based compensation expense and related expenses. For additional information, see the section titled “Stock-Based Compensation” below. Our gross margin for the year ended December 31, 2022 increased by 1% compared to 2021. Gross margin increased as a result of revenue growth outpacing costs of revenue.
The increases were partially offset by a decrease of $5.9 million in stock-based compensation expense and related expenses, net. For additional information, see the section titled “Stock-Based Compensation” below. Our gross margin for the year ended December 31, 2023 increased by 2% compared to 2022, as revenue growth outpaced costs of revenue.
The portion of customer deposits that is anticipated to be recognized as revenue during the succeeding twelve-month period is recorded as customer deposits and the remaining portion is recorded as customer deposits, noncurrent. Our deferred revenue and deferred revenue, noncurrent as of December 31, 2022 were $183.4 million and $10.0 million, respectively.
The portion of customer deposits that is anticipated to be recognized as revenue during the succeeding twelve-month period is recorded as customer deposits and the remaining portion is recorded as customer deposits, noncurrent. Our deferred revenue and deferred revenue, noncurrent as of December 31, 2023 were $246.9 million and $28.0 million, respectively.
As of December 31, 2022, the total remaining deal value of the contracts, as defined above, was $3.7 billion, down 3% from December 31, 2021, when our total remaining deal value of such contracts was $3.8 billion.
As of December 31, 2023, the total remaining deal value of the contracts, as defined above, was $3.9 billion, up 5% from December 31, 2022, when our total remaining deal value of such contracts was $3.7 billion.
The primary cause of this growth rate variation was the decrease in stock-based compensation expense and related expenses in cost of revenue relative to total expense growth as compared to the prior year.
The primary cause of this growth rate variation was the decrease in stock-based compensation expense and related expenses, net in cost of revenue and smaller growth in field service representatives and other direct costs relative to revenue growth as compared to the prior year.
However, if the conflict continues or worsens, leading to greater disruptions and uncertainty within the technology industry or global economy, our business and results of operations could be negatively impacted.
If the respective conflicts continue or worsen, leading to greater disruptions and uncertainty within the technology industry or global economy, our business and results of operations could be negatively impacted.
As of December 31, 2022, the total remaining deal value of the contracts that we had been awarded by government agencies in the United States and allied countries around the world, including existing contractual obligations and contractual options 65 available to those government agencies, was $1.7 billion, up 37% from December 31, 2021, when the total value of such contracts was $1.2 billion.
Of our total remaining deal value, as of December 31, 2023, the total remaining deal value of the contracts that we entered into with commercial customers, including existing contractual obligations and available contractual options, as defined above, was $2.1 billion, up 7% from December 31, 2022, when the total remaining deal value of such contracts was $2.0 billion. 67 As of December 31, 2023, the total remaining deal value of the contracts that we had been awarded by government agencies in the United States and allied countries around the world, including existing contractual obligations and contractual options available to those government agencies, was $1.8 billion, up 4% from December 31, 2022, when the total value of such contracts was $1.7 billion.
Other Income (Expense), Net Other income (expense), net consists primarily of foreign currency exchange gains and losses, realized and unrealized losses from Investments, and our share of income and losses from our equity method investments. The year ended December 31, 2022 also included a gain from a step acquisition.
Interest Expense Interest expense consists primarily of interest expense and commitment fees incurred under our credit facility. Other Income (Expense), Net Other income (expense), net consists primarily of foreign currency exchange gains and losses and realized and unrealized losses from equity securities. The year ended December 31, 2022 also included a gain from a step acquisition.
Gross Profit and Gross Margin, Excluding Stock-Based Compensation The following table provides a reconciliation of gross profit and gross margin, excluding stock-based compensation for the years ended December 31, 2022 and 2021 (in thousands, except percentages): Years Ended December 31, 2022 2021 Gross profit $ 1,497,322 $ 1,202,485 Add: stock-based compensation 44,061 68,546 Gross profit, excluding stock-based compensation $ 1,541,383 $ 1,271,031 Gross margin, excluding stock-based compensation 81 % 82 % Adjusted Income from Operations The following table provides a reconciliation of adjusted income from operations, which excludes stock-based compensation and related employer payroll taxes for the years ended December 31, 2022 and 2021 (in thousands): Years Ended December 31, 2022 2021 Loss from operations $ (161,201) $ (411,046) Add: stock-based compensation 564,798 778,215 Add: employer payroll taxes related to stock-based compensation 17,156 106,283 Adjusted income from operations $ 420,753 $ 473,452 68 Components of Results of Operations Revenue We generate revenue from the sale of subscriptions to access our software in our hosted environment along with ongoing O&M services (“Palantir Cloud”), software subscriptions in our customers’ environments with ongoing O&M services (“On-Premises Software”), and professional services.
Gross Profit and Gross Margin, Excluding Stock-Based Compensation The following table provides a reconciliation of gross profit and gross margin, excluding stock-based compensation for the years ended December 31, 2023 and 2022 (in thousands, except percentages): Years Ended December 31, 2023 2022 Gross profit $ 1,793,907 $ 1,497,322 Add: stock-based compensation 35,995 44,061 Gross profit, excluding stock-based compensation $ 1,829,902 $ 1,541,383 Gross margin, excluding stock-based compensation 82 % 81 % Adjusted Income from Operations The following table provides a reconciliation of adjusted income from operations, which excludes stock-based compensation and related employer payroll taxes for the years ended December 31, 2023 and 2022 (in thousands): Years Ended December 31, 2023 2022 Income (loss) from operations $ 119,966 $ (161,201) Add: stock-based compensation 475,903 564,798 Add: employer payroll taxes related to stock-based compensation 36,907 17,156 Adjusted income from operations $ 632,776 $ 420,753 Components of Results of Operations Revenue We generate revenue from the sale of subscriptions to access our software platforms in our hosted environment along with ongoing O&M services (“Palantir Cloud”), software subscriptions in our customers’ environments with ongoing O&M services (“On-Premises Software”), and professional services.
Revenue from U.S. government customers was $826.3 million for the year ended December 31, 2022 compared to $678.2 million for the same period in 2021. Revenue from commercial customers increased by $189.6 million, or 29%, for the year ended December 31, 2022 compared to 2021.
Revenue from U.S. government customers was $921.2 million for the year ended December 31, 2023 compared to $826.3 million for the same period in 2022. Revenue from commercial customers increased by $168.7 million, or 20%, for the year ended December 31, 2023 compared to 2022.
Debt in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K.
For more information, see Note 6. Debt in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K.
Customer deposits consist of amounts billed and/or paid for anticipated revenue generating activities in advance of the start of the contractual term or for the portion of a contract term that is subject to cancellation by our customers.
The portion of deferred revenue that is anticipated to be recognized as revenue during the succeeding twelve-month period is recorded as deferred revenue and the remaining portion is recorded as deferred revenue, noncurrent. 77 Customer deposits consist of amounts billed and/or paid for anticipated revenue generating activities in advance of the start of the contractual term or for the portion of a contract term that is subject to cancellation by our customers.
The decrease was primarily driven by timing of payments to vendors and timing of the receipt of payments from our customers. Investing Activities Net cash used in investing activities was $45.4 million and $397.9 million for the year ended December 31, 2022 and 2021, respectively.
The increase was primarily driven by timing of payments to vendors and timing of the receipt of payments from our customers, as well as an increase in interest income. Investing Activities Net cash used in investing activities was $2.7 billion and $45.4 million for the year ended December 31, 2023 and 2022, respectively.
Other Income (Expense), Net Years Ended December 31, Change 2022 2021 Amount Other income (expense), net $ (216,077) $ (75,415) $ (140,662) Other income (expense), net changed by $140.7 million for the year ended December 31, 2022 compared to 2021 primarily due to $272.1 million of net unrealized and realized losses from our investments in marketable securities, partially offset by a $44.3 million gain from a “step acquisition” (as defined by U.S.
Other Income (Expense), Net Years Ended December 31, Change 2023 2022 Amount Other income (expense), net $ (11,977) $ (216,077) $ 204,100 75 Other income (expense), net changed by $204.1 million for the year ended December 31, 2023 compared to 2022 primarily due to the net decrease in unrealized losses from our shares held in equity securities, partially offset by an increase in net realized losses from sales of publicly-traded equity securities, and $44.3 million gain from a “step acquisition” (as defined by U.S.
Actual results could differ from those estimates and such differences could affect our financial position and results of operations. Recent Accounting Pronouncements For information on recently issued accounting pronouncements, if any, refer to Note 2. Significant Accounting Policies in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K.
Recent Accounting Pronouncements For information on recently issued accounting pronouncements, if any, refer to Note 2. Significant Accounting Policies in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K.
Contribution Margin The following table provides a reconciliation of contribution margin for the years ended December 31, 2022 and 2021 (in thousands, except percentages): Years Ended December 31, 2022 2021 Loss from operations $ (161,201) $ (411,046) Add: Research and development expenses (1) 265,808 237,189 General and administrative expenses (1) 365,768 295,071 Total stock-based compensation expense 564,798 778,215 Total contribution $ 1,035,173 $ 899,429 Contribution margin 54 % 58 % ———— (1) Excludes stock-based compensation.
Contribution Margin The following table provides a reconciliation of contribution margin for the years ended December 31, 2023 and 2022 (in thousands, except percentages): Years Ended December 31, 2023 2022 Income (loss) from operations $ 119,966 $ (161,201) Add: Research and development expenses (1) 306,560 265,808 General and administrative expenses (1) 343,126 365,768 Total stock-based compensation expense 475,903 564,798 Total contribution $ 1,245,555 $ 1,035,173 Contribution margin 56 % 54 % ———— (1) Excludes stock-based compensation.
We expect that general and administrative expenses will increase in absolute dollars as we hire additional personnel and enhance our systems, processes, and controls to support the growth in our business as well as our increased compliance and reporting requirements as a public company.
We expect that general and administrative expenses will increase in absolute dollars as we hire additional personnel and enhance our systems, processes, and controls to support the growth in our business as well as our continuing compliance and reporting requirements as a public company. 71 Interest Income Interest income consists primarily of interest income earned on our cash, cash equivalents, U.S. treasury securities, and restricted cash balances.
If additional funds are not available to us on acceptable terms, or at all, our business, financial condition, and results of operations could be adversely affected.
In the event that additional financing is required from outside sources, we may not be able to raise it on terms acceptable to us or at all. If additional funds are not available to us on acceptable terms, or at all, our business, financial condition, and results of operations could be adversely affected.
The following table summarizes our cash flows for the periods indicated (in thousands): Years Ended December 31, 2022 2021 2020 Net cash provided by (used in): Operating activities $ 223,737 $ 333,851 $ (296,608) Investing activities (45,427) (397,912) (14,920) Financing activities 85,996 306,747 1,036,453 Effect of foreign exchange on cash, cash equivalents, and restricted cash (3,885) (3,918) 1,259 Net increase in cash, cash equivalents, and restricted cash $ 260,421 $ 238,768 $ 726,184 Operating Activities Net cash provided by operating activities was $223.7 million and $333.9 million for the year ended December 31, 2022 and 2021, respectively.
Stockholders’ Equity in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K. 76 The following table summarizes our cash flows for the periods indicated (in thousands): Years Ended December 31, 2023 2022 2021 Net cash provided by (used in): Operating activities $ 712,183 $ 223,737 $ 333,851 Investing activities (2,711,180) (45,427) (397,912) Financing activities 218,839 85,996 306,747 Effect of foreign exchange on cash, cash equivalents, and restricted cash 2,930 (3,885) (3,918) Net increase in cash, cash equivalents, and restricted cash $ (1,777,228) $ 260,421 $ 238,768 Operating Activities Net cash provided by operating activities was $712.2 million and $223.7 million for the year ended December 31, 2023 and 2022, respectively.
Of the increase, $151.1 million was from government customers existing as of December 31, 2021. Generally, increases in revenue from our existing customers are a result of expanded use of our products and services within their organizations.
Revenue from government customers increased by $150.4 million, or 14%, for the year ended December 31, 2023 compared to 2022. Of the increase, $129.4 million was from existing government customers as of December 31, 2022. Generally, increases in revenue from our existing customers are a result of expanded use of our products and services within their organizations.
Macroeconomic Trends As a corporation with an international presence, we are subject to risks and uncertainties caused by significant events with macroeconomic impacts, including, but not limited to, the ongoing COVID-19 pandemic, the impact of the ongoing Russia-Ukraine conflict, rising inflation and interest rates, monetary policy changes, and foreign currency fluctuations.
Macroeconomic Trends As a corporation with an international presence, we are subject to risks and uncertainties caused by significant events with macroeconomic impacts, including, but not limited to, geopolitical tensions, heightened interest rates, monetary policy changes, and foreign currency fluctuations. Additionally, these macroeconomic impacts have disrupted, and may continue to disrupt, the operations of our customers and prospective customers.
We believe that cash flows generated from operations, cash, cash equivalents, available funds and access to financing sources, including our credit facility, will be sufficient to meet our anticipated operating cash needs for at least the next twelve months. However, any projections of future cash needs and cash flows are subject to substantial uncertainty.
We had cash, cash equivalents, and short-term U.S. treasury securities totaling $3.7 billion available as of December 31, 2023. We believe that cash flows generated from operations, cash, cash equivalents, marketable securities, available funds, and access to financing sources, including our credit facility, will be sufficient to meet our anticipated operating cash needs for at least the next twelve months.
The decrease was primarily driven by forfeitures and lower expense under the accelerated attribution method for RSUs granted prior to September 30, 2020, the date of our Direct Listing, during the year ended December 31, 2022 compared to the same period in 2021, partially offset by an increase related to awards granted after December 31, 2021.
The decrease was primarily driven by lower expense under the accelerated attribution method for RSUs granted prior to our Direct Listing, during the year ended December 31, 2023 compared to the same period in 2022. Additionally, stock-based compensation expenses decreased due to the cancellation and vesting of options and RSUs during the year.
Our customer deposits and customer deposits, noncurrent as of December 31, 2022 were $142.0 million and $3.9 million, respectively. Our deferred revenue and deferred revenue, noncurrent as of December 31, 2021 were $227.8 million and $40.2 million, respectively. Our customer deposits and customer deposits, noncurrent as of December 31, 2021 were $161.6 million and $33.7 million, respectively.
Our customer deposits and customer deposits, noncurrent as of December 31, 2023 were $209.8 million and $1.5 million, respectively. Our deferred revenue and deferred revenue, noncurrent as of December 31, 2022 were $183.4 million and $10.0 million, respectively. Our customer deposits and customer deposits, noncurrent as of December 31, 2022 were $142.0 million and $3.9 million, respectively.
The increase was primarily due to increases of $33.0 million in third-party cloud hosting services driven by increased usage from customer growth and expansion, $29.4 million in field service representatives mainly related to new projects, $18.1 million in payroll and other payroll-related costs as a result of increased headcount attributable to our cost of revenue function, and $11.9 million in travel and office-related costs.
The increase was primarily due to increases of $12.2 million in third-party cloud hosting services and other IT costs driven by usage from customer growth and expansion, $9.4 million in payroll and other payroll-related costs as a result of higher average headcount during the year, and $7.5 million in field service representatives, hardware, and other direct costs generally related to new or expanded projects.
See the section titled “Risk Factors” included elsewhere in this Annual Report on Form 10-K for further discussion of the impact of macroeconomic trends on our business. COVID-19 Impact The COVID-19 pandemic continues to impact the global economy.
We continuously monitor the direct and indirect impacts of these circumstances on our business and financial results, as well as the overall global economy and geopolitical landscape. See the section titled “Risk Factors” included elsewhere in this Annual Report on Form 10-K for further discussion of the impact of macroeconomic trends on our business.
Provision for (Benefit from) Income Taxes Provision for (benefit from) income taxes consists of income taxes related to foreign and state jurisdictions in which we conduct business and withholding taxes.
Provision for Income Taxes Provision for income taxes consists of income taxes related to foreign and state jurisdictions in which we conduct business and withholding taxes. Net Income (Loss) Attributable to Noncontrolling Interests Net income (loss) attributable to noncontrolling interests represents the share of income (loss) that is not attributable to the Company.
The increase was primarily due to increases of $93.1 million in payroll and other payroll-related costs driven by increased headcount attributable to our sales and marketing function, $36.3 million in travel and office-related costs, and $23.5 million in marketing and advertising expenses. The increases were partially offset by a decrease of $81.3 million in stock-based compensation expense and related expenses.
The increase was primarily due to increases of $53.6 million in payroll and other payroll-related costs driven by higher average headcount, $20.2 million in travel and office-related costs, and $10.2 million in professional services. The increases were 74 partially offset by a decrease of $26.2 million in stock-based compensation expense and related expenses, net.
General and Administrative General and administrative expenses decreased by $15.2 million, or 2%, for the year ended December 31, 2022 compared to 2021. The decrease was primarily due to a decrease of $113.0 million in stock-based compensation expense and related expenses. For additional information see the section titled “Stock-Based Compensation” below.
General and Administrative General and administrative expenses decreased by $72.0 million, or 12%, for the year ended December 31, 2023 compared to 2022. The decrease was primarily due to decreases of $46.2 million in stock-based compensation expense and related expenses, net, $17.9 million in professional services, and $11.3 million in travel costs.
Financing Activities Net cash provided by financing activities was $86.0 million and $306.7 million for the year ended December 31, 2022 and 2021, respectively.
Financing Activities Net cash provided by financing activities was $218.8 million and $86.0 million for the year ended December 31, 2023 and 2022, respectively, each of which primarily consisted of proceeds from the exercise of common stock options.
Interest Income Years Ended December 31, Change 2022 2021 Amount Interest income $ 20,309 $ 1,607 $ 18,702 Interest income increased by $18.7 million for the year ended December 31, 2022 compared to 2021 primarily due to an increase in U.S. interest rates on interest earned from our cash, cash equivalents, and restricted cash.
Interest Income Years Ended December 31, Change 2023 2022 Amount Interest income $ 132,572 $ 20,309 $ 112,263 Interest income increased by $112.3 million for the year ended December 31, 2023 compared to 2022 primarily due to higher U.S. interest rates and increases in our interest-bearing cash and cash equivalents, and our investments in short-term U.S. treasury securities.
For additional information, see the section titled “Stock-Based Compensation” below. Research and Development Research and development expenses decreased by $27.8 million, or 7%, for the year ended December 31, 2022 compared to 2021. The decrease was primarily due to a decrease of $75.1 million in stock-based compensation expense and related expenses.
For additional information, see the section titled “Stock-Based Compensation” below. Research and Development Research and development expenses increased by $44.9 million, or 12%, for the year ended December 31, 2023 compared to 2022.
Deferred revenue represents billings under noncancelable contracts before the related product or service is transferred to the customer. The portion of deferred revenue that is anticipated to be recognized as revenue during the succeeding twelve-month period is recorded as deferred revenue and the remaining portion is recorded as deferred revenue, noncurrent.
Deferred revenue represents billings under noncancelable contracts before the related product or service is transferred to the customer.
Operating Expenses Years Ended December 31, Change 2022 2021 Amount % Sales and marketing $ 702,511 $ 614,512 $ 87,999 14 % Research and development 359,679 387,487 (27,808) (7) % General and administrative 596,333 611,532 (15,199) (2) % Total operating expenses $ 1,658,523 $ 1,613,531 $ 44,992 3 % Sales and Marketing Sales and marketing expenses increased by $88.0 million, or 14%, for the year ended December 31, 2022 compared to 2021.
Operating Expenses Years Ended December 31, Change 2023 2022 Amount % Sales and marketing $ 744,992 $ 702,511 $ 42,481 6 % Research and development 404,624 359,679 44,945 12 % General and administrative 524,325 596,333 (72,008) (12) % Total operating expenses $ 1,673,941 $ 1,658,523 $ 15,418 1 % Sales and Marketing Sales and marketing expenses increased by $42.5 million, or 6%, for the year ended December 31, 2023 compared to 2022.
Income Taxes in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K. 74 Liquidity and Capital Resources We generated positive cash flow from operations for the year ended December 31, 2022 and had $2.6 billion in cash and cash equivalents available as of December 31, 2022.
The Company maintains a full valuation allowance against its U.S. federal and state, and certain foreign deferred tax assets. For additional information see Note 11. Income Taxes in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K. Liquidity and Capital Resources We generated positive cash flow from operations for the year ended December 31, 2023.
Further, we may enter into future arrangements to acquire or invest in businesses, products, services, strategic partnerships, and technologies. As such, we may be required to seek additional equity or debt financing. In the event that additional financing is required from outside sources, we may not be able to raise it on terms acceptable to us or at all.
Further, we may enter into future arrangements to acquire or invest in businesses, products, services, strategic partnerships, and technologies; additionally, we may repurchase shares of our Class A common stock from time to time under our Share Repurchase Program. As such, we may be required to seek additional equity or debt financing.
Total remaining deal value is the total remaining value of contracts that have been awarded by our government and commercial customers and includes existing contractual obligations and unexercised contract options available to those customers.
Total remaining deal value is the total remaining value of contracts that have been entered into with, or awarded by, our customers as of the end of the reporting period. Total remaining deal value presumes the exercise of all contract options available to our customers and no termination of contracts.
As a result, the general strengthening of the U.S. dollar relative to other major foreign currencies (primarily the Euro and GBP) had an unfavorable impact on our revenues from certain non-U.S. customers; however, that impact for the year ended December 31, 2022 was not material to our financial position or results of operations. 66 Customer Impacts Current macroeconomic conditions may also adversely impact our customers’ business, particularly our early- and growth-stage customers.
For the year ended December 31, 2023, such impacts were not material to our financial position or results of operations. Customer Impacts Current macroeconomic conditions have impacted, and may continue to adversely impact, our customers’ businesses, particularly our early- and growth-stage customers.
Interest Expense Years Ended December 31, Change 2022 2021 Amount Interest expense $ (4,058) $ (3,640) $ (418) Interest expense increased by $0.4 million for the year ended December 31, 2022 compared to 2021 driven by the amendments to our credit facility during the year.
Interest Expense Years Ended December 31, Change 2023 2022 Amount Interest expense $ (3,470) $ (4,058) $ 588 There was no material change in interest expense for the year ended December 31, 2023 compared to 2022.
While the conflict is still evolving and the outcome remains highly uncertain, we do not expect that the Russian invasion will have a material impact on our business and results of operations. We do not currently have office locations in Russia and none of our revenues came from sales to entities headquartered in Russia.
While the ongoing Russia-Ukraine and Israel conflicts are still evolving and the outcomes remain highly uncertain, we do not expect that resulting challenging macroeconomic conditions will have a material impact on our business or results of operations.
As of December 31, 2022, our accumulated deficit balance was $5.9 billion, and our principal sources of liquidity were $2.6 billion of cash and cash equivalents. During April 2021, we repaid our outstanding term loans of $200.0 million.
As of December 31, 2023, our accumulated deficit balance was $5.6 billion, and our principal sources of liquidity were cash, cash equivalents, and short-term U.S. treasury securities totaling $3.7 billion. As of December 31, 2023, we had no outstanding debt balances and additional available and undrawn revolving commitments of $500.0 million under our credit facility.
We have generated significant losses from our operations as reflected in our consolidated balance sheets and we expect cash flow from operations may fluctuate for the foreseeable future. Historically, we have financed our operations primarily through the sale of our equity securities, including proceeds from option exercises, and payments received from our customers.
However, any projections of future cash needs and cash flows are subject to substantial uncertainty. We have historically generated significant losses from our operations as reflected in our consolidated balance sheets and while we have generated income from operations and positive cash flows from operations in the year ended December 31, 2023, the amounts may fluctuate for the foreseeable future.
Investments and Fair Value Measurements in our consolidated financial statements included elsewhere in this Annual Report on Form 10-K for additional information. 72 Cost of Revenue and Gross Profit Years Ended December 31, Change 2022 2021 Amount % Cost of revenue $ 408,549 $ 339,404 $ 69,145 20 % Gross profit 1,497,322 1,202,485 294,837 25 % Gross margin 79 % 78 % Cost of revenue for the year ended December 31, 2022 increased by $69.1 million, or 20%, compared to 2021.
Cost of Revenue and Gross Profit Years Ended December 31, Change 2023 2022 Amount % Cost of revenue $ 431,105 $ 408,549 $ 22,556 6 % Gross profit 1,793,907 1,497,322 296,585 20 % Gross margin 81 % 79 % Cost of revenue for the year ended December 31, 2023 increased by $22.6 million, or 6%, compared to 2022.
The decrease in cash provided by financing activities was driven by a decrease in proceeds from the exercise of common stock options, partially offset by the principal repayments on borrowings of $200.0 million made during the year ended December 31, 2021. 75 Contractual Obligations and Commitments The following table summarizes our contractual obligations and commitments as of December 31, 2022 (in thousands): Payments Due by Period Total Less than 1 year 1-3 years 3-5 years More than 5 years Noncancelable purchase commitments (1) $ 1,275,377 $ 169,124 $ 591,000 $ 515,253 $ — Operating lease commitments, net of sublease income amounts (2) 193,075 40,385 74,633 38,550 39,507 Total contractual obligations and commitments $ 1,468,452 $ 209,509 $ 665,633 $ 553,803 $ 39,507 ————— (1) Noncancelable purchase commitments primarily relate to purchase commitments for third-party cloud hosting services and represents only contracts which are enforceable and legally binding.
Contractual Obligations and Commitments The following table summarizes our contractual obligations and commitments as of December 31, 2023 (in thousands): Payments Due by Period Total Less than 1 year 1-3 years 3-5 years More than 5 years Noncancelable purchase commitments (1) $ 2,082,992 $ 131,342 $ 367,400 $ 481,150 $ 1,103,100 Operating lease commitments, net of sublease income amounts (2) 174,399 50,827 69,016 23,201 31,355 Total contractual obligations and commitments $ 2,257,391 $ 182,169 $ 436,416 $ 504,351 $ 1,134,455 ————— (1) Noncancelable purchase commitments primarily relate to purchase commitments for third-party cloud hosting services and represents only contracts which are enforceable and legally binding.
The decrease in cash used in investing activities was primarily due to a reduction of our purchases of alternative investments and marketable securities, as well as increases from cash acquired from business combinations and sales or redemption of certain marketable securities.
The increase in cash used in investing activities was primarily due to purchases of marketable securities, primarily comprised of short-term U.S. treasury securities, offset by proceeds from sales and redemptions of marketable securities.
In June 2022, our Chief Executive Officer, Alexander Karp, met with the President of Ukraine and other senior officials to discuss opening an office in Ukraine and providing ongoing support. Our current operations related to Ukraine are not material to our financial position or results of operations.
In 2024, we agreed to a strategic partnership with the Israeli Defense Ministry to supply technology to Israel to assist in the ongoing war. However, our current operations related to Ukraine and Israel are not material to our financial position or results of operations.