Biggest changeYears Ended January 31, 2023 2022 2021 Consolidated Statements of Operations Data: Revenue: Subscription $ 1,235,122 $ 842,047 $ 565,349 Services 48,918 31,735 25,031 Total revenue 1,284,040 873,782 590,380 Cost of revenue: Subscription (1) 284,583 217,901 145,280 Services (1) 64,721 41,591 31,796 Total cost of revenue 349,304 259,492 177,076 Gross profit 934,736 614,290 413,304 Operating expenses: Sales and marketing (1) 699,201 471,890 325,100 Research and development (1) 421,692 308,820 205,161 General and administrative (1) 160,498 122,944 92,347 Total operating expenses 1,281,391 903,654 622,608 Loss from operations (346,655) (289,364) (209,304) Other income (expense), net 13,401 (13,525) (53,389) Loss before provision for income taxes (333,254) (302,889) (262,693) Provision for income taxes 12,144 3,977 4,251 Net loss $ (345,398) $ (306,866) $ (266,944) (1) Includes stock-based compensation expense as follows (in thousands): Years Ended January 31, 2023 2022 2021 Cost of revenue—subscription $ 19,682 $ 14,387 $ 8,970 Cost of revenue—services 10,565 6,325 4,953 Sales and marketing 143,073 91,947 54,632 Research and development 159,099 104,335 57,611 General and administrative 49,035 34,075 23,147 Total stock-based compensation expense $ 381,454 $ 251,069 $ 149,313 54 Table of Contents Years Ended January 31, 2023 2022 2021 Percentage of Revenue Data: Revenue: Subscription 96 % 96 % 96 % Services 4 4 4 Total revenue 100 100 100 Cost of revenue: Subscription 22 25 25 Services 5 5 5 Total cost of revenue 27 30 30 Gross profit 73 70 70 Operating expenses: Sales and marketing 54 54 55 Research and development 33 35 35 General and administrative 13 14 15 Total operating expenses 100 103 105 Loss from operations (27) (33) (35) Other income (expense), net 1 (1) (9) Loss before provision for income taxes (26) (34) (44) Provision for income taxes 1 1 1 Net loss (27) % (35) % (45) % Comparison of the Years Ended January 31, 2023 and 2022 Revenue Years Ended January 31, Change (in thousands) 2023 2022 $ % Subscription $ 1,235,122 $ 842,047 $ 393,075 47 % Services 48,918 31,735 17,183 54 % Total revenue $ 1,284,040 $ 873,782 $ 410,258 47 % Total revenue growth reflects increased demand for our platform and related services.
Biggest changeYears Ended January 31, 2024 2023 2022 $ % of Revenue $ % of Revenue $ % of Revenue Consolidated Statements of Operations Data: Revenue: Subscription $ 1,627,326 97 % $ 1,235,122 96 % $ 842,047 96 % Services 55,685 3 48,918 4 31,735 4 Total revenue 1,683,011 100 1,284,040 100 873,782 100 Cost of revenue: Subscription (1) 345,233 20 284,583 22 217,901 25 Services (1) 79,252 5 64,721 5 41,591 5 Total cost of revenue 424,485 25 349,304 27 259,492 30 Gross profit 1,258,526 75 934,736 73 614,290 70 Operating expenses: Sales and marketing (1) 782,760 47 699,201 54 471,890 54 Research and development (1) 515,940 31 421,692 33 308,820 35 General and administrative (1) 193,558 11 160,498 13 122,944 14 Total operating expenses 1,492,258 89 1,281,391 100 903,654 103 Loss from operations (233,732) (14) (346,655) (27) (289,364) (33) Other income (expense), net 70,216 5 13,401 1 (13,525) (1) Loss before provision for income taxes (163,516) (9) (333,254) (26) (302,889) (34) Provision for income taxes 13,084 1 12,144 1 3,977 1 Net loss $ (176,600) (10) % $ (345,398) (27) % $ (306,866) (35) % (1) Includes stock-based compensation expense as follows (in thousands): Years Ended January 31, 2024 2023 2022 Cost of revenue—subscription $ 23,677 $ 19,682 $ 14,387 Cost of revenue—services 12,733 10,565 6,325 Sales and marketing 159,907 143,073 91,947 Research and development 198,927 159,099 104,335 General and administrative 61,663 49,035 34,075 Total stock-based compensation expense $ 456,907 $ 381,454 $ 251,069 Comparison of the Years Ended January 31, 2024 and 2023 Revenue Years Ended January 31, Change (in thousands) 2024 2023 $ % Subscription $ 1,627,326 $ 1,235,122 $ 392,204 32 % Services 55,685 48,918 6,767 14 % Total revenue $ 1,683,011 $ 1,284,040 $ 398,971 31 % 57 Table of Contents Total revenue growth reflects increased demand for our platform and related services.
For further details of our contractual obligations and lease agreements, refer to our Notes to Consolidated Financial Statements, within Part II, Item 8, Financial Statements and Supplementary Data of this Form 10-K, specifically Note 6, Convertible Senior Notes , Note 7, Leases and Note 8, Commitments and Contingencies. 60 Table of Contents Critical Accounting Estimates Our financial statements are prepared in accordance with GAAP.
For further details of our contractual obligations and lease agreements, refer to our Notes to Consolidated Financial Statements, within Part II, Item 8, Financial Statements and Supplementary Data of this Form 10-K, specifically Note 6, Convertible Senior Notes , Note 7, Leases and Note 8, Commitments and Contingencies. 62 Table of Contents Critical Accounting Estimates Our financial statements are prepared in accordance with GAAP.
We recognize revenue at the time the related performance obligation is satisfied when control of the services or products are transferred to the customers, 61 Table of Contents in an amount that reflects the consideration we expect to be entitled to in exchange for those services or products. We record our revenue net of any value added or sales tax.
We recognize revenue at the time the related performance obligation is satisfied when control of the services or products are transferred to the customers, 63 Table of Contents in an amount that reflects the consideration we expect to be entitled to in exchange for those services or products. We record our revenue net of any value added or sales tax.
We intend to continue to invest in our engineering capabilities and marketing activities to maintain our strong position in the developer community. We have spent $1.4 billion on research and development since our inception. Our results of operations may fluctuate as we make these investments to drive increased customer adoption and usage.
We intend to continue to invest in our engineering capabilities and marketing activities to maintain our strong position in the developer community. We have spent $1.9 billion on research and development since our inception. Our results of operations may fluctuate as we make these investments to drive increased customer adoption and usage.
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. If we are unable to raise additional capital when desired, our business, operating results and financial condition would 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 we are unable to raise additional capital when desired, our business, operating results and financial condition would be adversely affected.
The growth in MongoDB Atlas customers included new customers to MongoDB and existing MongoDB Enterprise Advanced customers adding incremental MongoDB Atlas workloads. Retaining and Expanding Revenue from Existing Customers The economic attractiveness of our subscription-based model is driven by customer renewals and increasing existing customer subscriptions over time, referred to as land-and-expand.
The growth in MongoDB Atlas customers included new customers to MongoDB and existing MongoDB Enterprise Advanced customers adding incremental MongoDB Atlas workloads. 53 Table of Contents Retaining and Expanding Revenue from Existing Customers The economic attractiveness of our subscription-based model is driven by customer renewals and increasing existing customer subscriptions over time, referred to as land-and-expand.
We satisfied our conversion obligations with respect to conversions occurring after the date of 57 Table of Contents the Redemption Notice and prior to December 3, 2021 (the “Redemption Date”) by delivering shares of common stock, plus cash in lieu of any resulting fractional shares (physical settlement).
We satisfied our conversion obligations with respect to conversions occurring after the date of the Redemption Notice and prior to December 3, 2021 (the “Redemption Date”) by delivering shares of common stock, plus cash in lieu of any resulting fractional shares (physical settlement).
We expect to continue to invest in our services organization as we believe it plays an important role in accelerating our customers’ realization of the benefits of our platform, which helps drive customer retention and expansion. We believe the market for our offerings is large and growing.
We expect to continue to invest in our services organization as we believe it plays an important role in accelerating our customers’ realization of the benefits of our platform, which helps drive customer retention and expansion. 52 Table of Contents We believe the market for our offerings is large and growing.
Growth of an application is impacted by a number of factors including the macroeconomic environment. During the year ended January 31, 2023, we experienced a negative impact from the macroeconomic environment on the growth of existing Atlas applications, which affected our revenue growth. We expect the macroeconomic environment to continue to negatively impact our revenue growth.
Growth of an application is impacted by a number of factors including the macroeconomic environment. During the year ended January 31, 2024, we believe we experienced a negative impact from the macroeconomic environment on the growth of existing Atlas applications, which affected our revenue growth. We expect the macroeconomic environment to continue to negatively impact our revenue growth.
Pursuant to the Redemption Notice, on the Redemption Date, we redeemed the outstanding principal of the 2024 Notes that were not converted prior to such date at a redemption price in cash equal to 100% of the principal amount of the 2024 Notes, plus accrued and unpaid interest.
Pursuant to the Redemption Notice, on the Redemption Date, we redeemed the outstanding principal of the 2024 Notes that were not converted prior to such date at a redemption 59 Table of Contents price in cash equal to 100% of the principal amount of the 2024 Notes, plus accrued and unpaid interest.
The increase in third-party infrastructure costs was partly offset by continued cost efficiencies realized as we scale MongoDB Atlas. In addition, subscription cost of revenue was higher due to a $11.5 million increase in personnel costs and stock-based compensation associated with increased headcount in our support organization.
The increase in third-party infrastructure costs was partly offset by continued cost efficiencies realized as we scale MongoDB Atlas. In addition, subscription cost of revenue was higher due to a $15.3 million increase in personnel costs and stock-based compensation associated with increased headcount in our support organization.
As of January 31, 2023, we had over 40,800 customers across a wide range of industries and in over 100 countries, compared to over 33,000 customers and over 24,800 customers as of January 31, 2022 and 2021, respectively. All affiliated entities are counted as a single customer and our definition of “customer” excludes users of our free offerings .
As of January 31, 2024, we had over 47,800 customers across a wide range of industries and in over 100 countries, compared to over 40,800 customers and over 33,000 customers as of January 31, 2023 and 2022, respectively. All affiliated entities are counted as a single customer and our definition of “customer” excludes users of our free offerings .
Comparison of the Years Ended January 31, 2022 and 2021 For a discussion of our results of operations for the year ended January 31, 2022 as compared to the year ended January 31, 2021, refer to Part II, Item 7, Management’s Discussion and Analysis of Financial Condition and Results of Operations , of our Annual Report on Form 10-K filed with the SEC on March 18, 2022.
Comparison of the Years Ended January 31, 2023 and 2022 For a discussion of our results of operations for the year ended January 31, 2023 as compared to the year ended January 31, 2022, refer to Part II, Item 7, Management’s Discussion and Analysis of Financial Condition and Results of Operations , of our Annual Report on Form 10-K filed with the SEC on March 17, 2023.
As of January 31, 2023, we had an accumulated deficit of $1.5 billion. We expect to continue to incur operating losses, may continue to experience negative cash flows from operations in the future and may require additional capital resources to execute strategic initiatives to grow our business.
As of January 31, 2024, we had an accumulated deficit of $1.7 billion. We expect to continue to incur operating losses, may continue to experience negative cash flows from operations in the future and may require additional capital resources to execute strategic initiatives to grow our business.
Our future capital requirements and adequacy of available funds will depend on many factors, including our growth rate and any impact on it from global macroeconomic conditions, including rising interest rates and inflation, the timing and extent of spending to support development efforts, the expansion of sales and marketing and international operation activities, the timing and size of new subscription introductions and customer usage of our developer data platform, the continuing market acceptance of our subscriptions and services and the impact of the COVID-19 pandemic on the global economy and our business, financial condition and results of operations.
Our future capital requirements and adequacy of available funds will depend on many factors, including our growth rate and any impact on it from global macroeconomic conditions, including rising interest rates, inflation, volatility in the banking sector, the timing and extent of spending to support development efforts, the expansion of sales and marketing and international operation activities, the timing and size of new subscription introductions and customer usage of our developer data platform, the continuing market acceptance of our subscriptions and services and the impact of the macroeconomic conditions on the global economy and our business, financial condition and results of operations.
We are also focused on increasing the number of overall MongoDB Atlas customers as we emphasize the on-demand scalability of MongoDB Atlas by allowing our customers to consume the product with minimal commitment. We had over 39,300 Mo ngoDB Atlas customers as of January 31, 2023 .
We are also focused on increasing the number of overall MongoDB Atlas customers as we emphasize the on-demand scalability of MongoDB Atlas by allowing our customers to consume the product with minimal commitment. We had over 46,300 Mo ngoDB Atlas customers as of January 31, 2024 .
As of January 31, 2023, we had over 6,400 cus tomers that were sold through our direct sales force and channel partners, as compared to over 4,400 and over 3,000 such customers as of January 31, 2022 and 2021, respectively.
As of January 31, 2024, we had over 7,000 cus tomers that were sold through our direct sales force and channel partners, as compared to over 6,400 and over 4,400 such customers as of January 31, 2023 and 2022, respectively.
We also generate revenue from services, which consist primarily of fees associated with consulting and training services. Revenue from services accounted for 4% of our total revenue for each of the years ended January 31, 2023, 2022 and 2021, respectively.
We also generate revenue from services, which consist primarily of fees associated with consulting and training services. Revenue from services accounted for 3% of our total revenue for the year ended January 31, 2024 and 4% of our total revenue for each of the years ended January 31, 2023 and 2022, respectively.
During the year ended January 31, 2023, MongoDB Atlas revenue represented 63% of our total revenue, as compared to 56% in the prior year, reflecting the continued growth of MongoDB Atlas since its introduction in June 2016. We have experienced strong growth in self-serve customers of MongoDB Atlas. These customers are charged monthly in arrears based on their usage.
During the year ended January 31, 2024, MongoDB Atlas revenue represented 66% of our total revenue, as compared to 63% in the prior year, reflecting the continued growth of MongoDB Atlas since its introduction in June 2016. We have experienced strong growth in self-serve customers of MongoDB Atlas, which are charged monthly in arrears based on their usage.
Highlights for the Years Ended January 31, 2023, 2022 and 2021 For the years ended January 31, 2023, 2022 and 2021, our total revenue was $1,284.0 million , $873.8 million and $590.4 million, respectively. The increase in total revenue was primarily driven by an increase in subscription revenue from our Direct Sales Customers .
Highlights for the Years Ended January 31, 2024, 2023 and 2022 For the years ended January 31, 2024, 2023 and 2022, our total revenue was $1,683.0 million , $1,284.0 million and $873.8 million, respectively. The increase in total revenue was primarily driven by an increase in subscription revenue from our Direct Sales Customers .
We generate revenue primarily from sales of subscriptions, which accounted for 96% of our total revenue for the each of the years ended January 31, 2023, 2022 and 2021, respectively.
We generate revenue primarily from sales of subscriptions, which accounted for 97% of our total revenue for the year ended January 31, 2024 and 96% of our total revenue for the each of the years ended January 31, 2023 and 2022, respectively.
Our net loss was $345.4 million, $306.9 million and $266.9 million for the years ended January 31, 2023, 2022 and 2021, respectively , driven primarily by higher sales and marketing spend and research and development costs .
Our net loss was $176.6 million, $345.4 million and $306.9 million for the years ended January 31, 2024, 2023 and 2022, respectively , driven primarily by higher sales and marketing spend and research and development costs .
Our operating cash flow was $(13.0) million, $7.0 million and $(42.7) million for the years ended January 31, 2023, 2022 and 2021, respectively. 53 Table of Contents Results of Operations The following tables set forth our results of operations for the periods presented in U.S. dollars (in thousands) and as a percentage of our total revenue.
Our operating cash flow was $121.5 million, $(13.0) million and $7.0 million for the years ended January 31, 2024, 2023 and 2022, respectively. 56 Table of Contents Results of Operations The following tables set forth our results of operations for the periods presented in U.S. dollars (in thousands) and as a percentage of our total revenue.
While the impact of these macroeconomic conditions on our business, results of operations and financial position remain uncertain over the long term, we expect to experience macroeconomic headwinds on growth rate for our existing MongoDB Atlas applications in the short term.
For instance, we experienced slower than historical growth rates for our existing MongoDB Atlas applications. While the impact of these macroeconomic conditions on our business, results of operations and financial position remain uncertain over the long term, we expect to experience macroeconomic headwinds on growth rate for our existing MongoDB Atlas applications in the short term.
We also have U.S. federal and state research credit carryforwards of $94.1 million and $8.9 million, respectively, which begin to expire in the year ending January 31, 2029 for federal purposes and January 31, 2025 for state purposes. Beginning in fiscal year 2023, provisions in the U.S.
We also have U.S. federal and state research credit carryforwards of $133.4 million and $11.8 million, respectively, which begin to expire in the year ending January 31, 2029 for federal purposes and January 31, 2025 for state purposes. Beginning in fiscal year 2023, provisions in the U.S.
MongoDB Atlas is our hosted multi-cloud database-as-a-service (“DBaaS”) offering, which we run and manage in the cloud, and includes comprehensive infrastructure and management, as well as a host of additional features, such as MongoDB Atlas Search.
MongoDB Atlas is our hosted multi-cloud database-as-a-service (“DBaaS”) offering, which we run and manage in the cloud, and includes comprehensive infrastructure and management, as well as a host of additional features, such as MongoDB Atlas Search, Vector search, time series and application-driven analytics.
We have increased our sales and marketing headcount to 2,249 employees as of January 31, 2023 from 1,713 employees and 1,171 employees as of January 31, 2022 and 2021, respectively. 51 Table of Contents Components of Results of Operations Revenue Subscription Revenue. Our subscription revenue is comprised of term licenses and hosted as-a-service solutions.
We have increased our sales and marketing headcount to 2,338 employees as of January 31, 2024 from 2,249 employees and 1,713 employees as of January 31, 2023 and 2022, respectively. Components of Results of Operations Revenue Subscription Revenue. Our subscription revenue is comprised of term licenses and hosted as-a-service solutions.
Total headcount in our support and services organizations increased 38% from January 31, 2022 to January 31, 2023. Our overall gross margin improved to 73%. Our subscription gross margin increased to 77% as efficiencies realized in managing our third-party cloud infrastructure costs more than offset the negative margin impact from the increasing percentage of revenue from MongoDB Atlas.
Total headcount in our support and services organizations increased 10% from January 31, 2023 to January 31, 2024. Our overall gross margin improved to 75%. Our subscription gross margin increased to 79% as efficiencies realized in managing our third-party cloud infrastructure costs more than offset the negative margin impact from the increasing percentage of revenue from MongoDB Atlas.
The number of customers with $100,000 or greater in ARR and annualized MRR was 1,651, 1,307 and 975 as of January 31, 2023, 2022 and 2021, respectively.
The number of customers with $100,000 or greater in ARR and annualized MRR was 2,052, 1,651 and 1,307 as of January 31, 2024, 2023 and 2022, respectively.
Liquidity and Capital Resources As of January 31, 2023, our principal sources of liquidity were cash, cash equivalents, short-term investments and restricted cash totaling $1.8 billion. Our cash and cash equivalents primarily consist of bank deposits and money market funds.
Liquidity and Capital Resources As of January 31, 2024, our principal sources of liquidity were cash, cash equivalents, short-term investments and restricted cash totaling $2.0 billion. Our cash and cash equivalents primarily consist of bank deposits and money market funds.
As the impact of the COVID-19 pandemic and macroeconomic conditions on the global economy and our operations continues to evolve, we will continue to assess our liquidity needs. We may in the future enter into arrangements to acquire or invest in complementary businesses, services and technologies, including intellectual property rights.
As the impact of macroeconomic conditions on the global economy and our operations continues to evolve, we will continue to assess our liquidity needs. We may in the future enter into arrangements to acquire or invest in complementary businesses, services and technologies, including intellectual property rights. We may be required to seek additional equity or debt financing.
As of January 31, 2023, we had net operating loss (“NOL”) carryforwards for U.S. federal and state, Irish and U.K. income tax purposes of approximately $1.9 billion, $1.8 billion, $697.2 million and $42.9 million, respectively, which begin to expire in the year ending January 31, 2028 for U.S. federal purposes and January 31, 2024 for state purposes.
As of January 31, 2024, we had net operating loss (“NOL”) carryforwards for U.S. federal and state, Irish and U.K. income tax purposes of approximately $2.1 billion, $2.0 billion, $781.5 million and $64.6 million, respectively, which begin to expire in the year ending January 31, 2028 for U.S. federal purposes and January 31, 2025 for state purposes.
In addition, we have also seen growth in MongoDB Atlas customers sold by our sales force. These customers typically sign annual contracts and pay in advance or are invoiced monthly in arrears based on usage.
We have also seen growth in MongoDB Atlas customers sold by our sales force, which typically sign annual contracts and pay in advance or are invoiced monthly in arrears based on usage. Customers sold by our sales force may also sign contracts that remain in effect until terminated and are invoiced monthly in arrears based on usage.
Many of our enterprise customers initially get to know our software by using Community Server, which is our free-to-download version of our database that includes the core functionality developers need to get started with MongoDB without all the features of our commercial platform.
Many of our enterprise customers initially get to know our software by using Community Server, which is our free-to-download version of our database that includes the core functionality developers need to get started with MongoDB without all the features of our commercial platform. Our platform has been downloaded from our website more than 500 million times since February 2009.
Revenue from our term licenses is recognized upfront for the license component and ratably for the technical support and when-and-if available update components. Associated contracts are typically billed annually in advance. The majority of our subscription contracts are one year in duration. When we enter into multi-year subscriptions, the customer is typically invoiced on an annual basis or pays upfront.
Revenue from our term licenses is recognized upfront for the license component and ratably for the technical support and when-and-if available update components. Associated contracts are typically billed annually in advance. The majority of our subscription contracts are one year in duration.
Research and development expense consists primarily of personnel costs, including salaries, bonuses and benefits, and stock-based compensation. It also includes amortization associated with intangible acquired assets and allocated overhead. We expect our research and development expenses to continue to increase in absolute dollars, as we continue to invest in our developer data platform and develop new products. General and Administrative.
It also includes amortization associated with intangible acquired assets and allocated overhead. We expect our research and development expenses to continue to increase in absolute dollars, as we continue to invest in our developer data platform and develop new products. General and Administrative.
Operating Expenses Sales and Marketing Years Ended January 31, Change (in thousands) 2023 2022 $ % Sales and marketing $ 699,201 $ 471,890 $ 227,311 48 % The increase in sales and marketing expense included $140.8 million from higher personnel costs and stock-based compensation, driven by an increase in our sales and marketing headcount to 2,249 as of January 31, 2023 from 1,713 as of January 31, 2022, which includes non-quota-carrying hires in sales operations, customer success and marketing.
Operating Expenses Sales and Marketing Years Ended January 31, Change (in thousands) 2024 2023 $ % Sales and marketing $ 782,760 $ 699,201 $ 83,559 12 % The increase in sales and marketing expense included $55.9 million from higher personnel costs and stock-based compensation, driven by an increase in our sales and marketing headcount to 2,338 as of January 31, 2024 from 2,249 as of January 31, 2023, which includes non-quota-carrying hires in sales operations, customer success and marketing.
Provision for Income Taxes Years Ended January 31, Change (in thousands) 2023 2022 $ % Provision for income taxes $ 12,144 $ 3,977 $ 8,167 205 % The increase in the provision for income taxes during the year ended January 31, 2023 was primarily due to an increase in foreign taxes as the Company continued its global expansion.
Provision for Income Taxes Years Ended January 31, Change (in thousands) 2024 2023 $ % Provision for income taxes $ 13,084 $ 12,144 $ 940 8 % The increase in the provision for income taxes during the year ended January 31, 2024 was primarily due to an increase in foreign taxes as we continued our global expansion.
We expect our sales and marketing expense to increase in absolute dollars over time as we expand our sales force and increase our marketing resources, expand into new markets and further develop our self-serve and partner channels. 52 Table of Contents Research and Development.
We expect our sales and marketing expense to increase in absolute dollars over time as we expand our sales force and increase our marketing resources, expand into new markets and further develop our self-serve and partner channels. Research and Development. Research and development expense consists primarily of personnel costs, including salaries, bonuses and benefits, and stock-based compensation.
Subscription revenue increased by $393.1 million primarily due to an increase of $360.5 million from our Direct Sales Customers, inclusive of the impact from Direct Sales Customers who were self-serve customers of MongoDB Atlas in the prior-year period.
Subscription revenue increased by $392.2 million primarily due to an increase of $357.3 million from our Direct Sales Customers, inclusive of the impact from Direct Sales Customers who were self-serve customers of MongoDB Atlas in the prior-year period. The increase in services revenue was driven primarily by the continued increase in delivery of consulting services.
Research and Development Years Ended January 31, Change (in thousands) 2023 2022 $ % Research and development $ 421,692 $ 308,820 $ 112,872 37 % The increase in research and development expense was primarily driven by a $97.8 million increase in personnel costs and stock-based compensation as we increased our research and development headcount by 19%.
Research and Development Years Ended January 31, Change (in thousands) 2024 2023 $ % Research and development $ 515,940 $ 421,692 $ 94,248 22 % The increase in research and development expense was primarily driven by a $83.9 million increase in personnel costs and stock-based compensation as we increased our research and development headcount by 19%.
As these factors develop and we evaluate their impact on our business, we may adjust our business practices accordingly. For further discussion of the potential impacts of these factors on our business, operating results, and financial condition, see the section titled “Risk Factors” included in Part I, Item 1A of this Form 10-K.
For further discussion of the potential impacts of these factors on our business, operating results, and financial condition, see the section titled “Risk Factors” included in Part I, Item 1A of this Form 10-K. Other factors affecting our performance are discussed below.
We expect general and administrative expense to increase in absolute dollars over time as we continue to invest in the growth of our business, as well as incur the ongoing costs of compliance associated with being a publicly traded company.
We expect general and administrative expense to increase in absolute dollars over time as we continue to invest in the growth of our business, as well as incur the ongoing costs of compliance associated with being a publicly traded company. 55 Table of Contents Other Income (Expense), Net Other income (expense), net consists primarily of interest income, interest expense, gains and losses on investments and gains and losses from foreign currency transactions.
Other Income (Expense), Net Other income (expense), net consists primarily of interest income, interest expense, gains and losses on investments and gains and losses from foreign currency transactions. Provision for Income Taxes Provision for income taxes consists primarily of state income taxes in the United States and income taxes in certain foreign jurisdictions in which we conduct business.
Provision for Income Taxes Provision for income taxes consists primarily of state income taxes in the United States and income taxes in certain foreign jurisdictions in which we conduct business.
The increase in services cost of revenue was primarily due to a $15.8 million increase in personnel costs and stock-based compensation associated with increased headcount in our services organization, and a $4.1 million increase in costs driven by an increase in the volume of consulting and training services.
The increase in services cost of revenue was primarily due to a $11.0 million increase in personnel costs and stock-based compensation associated with headcount in our services organization, and a $2.8 million increase in third-party consultant costs related to the delivery of consulting and training services.
These customers, which we refer to as our Direct Sales Customers, accounted for 87%, 85% and 82% of our subscription revenue for the years ended January 31, 2023, 2022 and 2021, respectively.
These customers, which we refer to as our Direct Sales Customers, accounted for 88%, 87% and 85% of our subscription revenue for the years ended January 31, 2024, 2023 and 2022, respectively. The percentage of our subscription revenue from Direct Sales Customers increased, in part, due to existing self-serve customers of MongoDB Atlas becoming Direct Sales Customers.
We have experienced rapid growth and have made substantial investments in developing our platform and expanding our sales and marketing footprint.
We have experienced rapid growth and have made substantial investments in developing our platform and expanding our sales and marketing footprint. We intend to continue to invest to grow our business to take advantage of our market opportunity.
In particular, these higher costs were driven by an increase in general and administrative personnel headcount resulting in $31.5 million higher personnel costs and stock-based compensation. In addition, general and administrative expense increased due to higher professional services fees, higher office-related expenses driven by higher headcount, and higher travel costs.
In particular, these higher costs were driven by an increase in general and administrative personnel headcount resulting in $29.5 million higher personnel costs and stock-based compensation.
The impact of higher services personnel costs and stock-based compensation and lower utilization rate resulted in negative services gross margin.
Services gross margin declined due to the impact of higher services personnel costs and stock-based compensation.
The following table summarizes our cash flows for the periods presented (in thousands): Years Ended January 31, 2023 2022 2021 Net cash (used in) provided by operating activities $ (12,970) $ 6,980 $ (42,673) Net cash used in investing activities (33,308) (852,142) (262,656) Net cash provided by financing activities 30,200 890,892 27,581 Operating Activities Cash used in operating activities during the year ended January 31, 2023 was $13.0 million.
The following table summarizes our cash flows for the periods presented (in thousands): Years Ended January 31, 2024 2023 2022 Net cash provided by (used in) operating activities $ 121,477 $ (12,970) $ 6,980 Net cash provided by (used in) investing activities 188,019 (33,308) (852,142) Net cash provided by financing activities 38,241 30,200 890,892 Operating Activities Cash provided by operating activities during the year ended January 31, 2024 was $121.5 million driven primarily by an increase in our cash collections reflecting overall growth of our sales and expansion of our customer base.
Research and development expense also increased due to higher computer hardware and software expenses, increased third-party infrastructure costs and higher travel costs driven by higher headcount.
Research and development 58 Table of Contents expense also increased by $8.8 million due to increased third-party infrastructure costs, higher software expenses and higher amortization expense.
Our platform has been downloaded from our website more than 365 million times since February 2009 and over 125 million times in the last 12 months alone. We also offer a free tier of MongoDB Atlas, which provides access to our hosted database solution with limited processing power and storage, as well as certain operational limitations.
We also offer a free tier of MongoDB Atlas, which provides access to our hosted database solution with limited processing power and storage, as well as certain operational limitations.
Financing Activities Cash provided by financing activities during the year ended January 31, 2023 was $30.2 million, due to $29.0 million of proceeds from the issuance of common stock under the Employee Stock Purchase Plan and $5.7 million exercises of stock options, partly offset by $4.5 million of principal repayments of finance leases.
Cash used in investing activities during the during the year ended January 31, 2023 was $33.3 million, primarily due to purchases of marketable securities, net of proceeds from maturities, of $23.0 million, $7.2 million of cash used for purchases of property and equipment and $3.1 million of additional investment in non-marketable securities. 60 Table of Contents Financing Activities Cash provided by financing activities during the year ended January 31, 2024 was $38.2 million, due to $36.9 million of proceeds from the issuance of common stock under the Employee Stock Purchase Plan and $6.8 million exercises of stock options, partly offset by $5.5 million of principal repayments of finance leases.
Other factors affecting our performance are discussed below, although we caution you that the COVID-19 pandemic may also impact these factors. Factors Affecting Our Performance Extending Product Leadership and Maintaining Developer Mindshare We are committed to delivering market-leading products to continue to build and maintain credibility with the global software developer community.
Factors Affecting Our Performance Extending Product Leadership and Maintaining Developer Mindshare We are committed to delivering market-leading products to continue to build and maintain credibility with the global software developer community. We believe we must maintain our product leadership position and the strength of our brand to drive further revenue growth.
This was primarily driven by our net loss of $345.4 million, which included non‑cash charges of $381.5 million for stock‑based compensation and $16.1 million for depreciation and amortization. The continuing growth of our sales and our expanding customer base led to an increase in accounts receivable of $91.5 million and deferred commissions of $49.1 million.
Cash used in operating activities during the year ended January 31, 2023 was $13.0 million. This was primarily driven by our net loss of $345.4 million, which included non‑cash charges of $381.5 million for stock‑based compensation and $16.1 million for depreciation and amortization.
Other Income (Expense), net Years Ended January 31, Change (in thousands) 2023 2022 $ % Other income (expense), net $ 13,401 $ (13,525) $ 26,926 (199) % Other income (expense), net, for the year ended January 31, 2023 improved primarily due to higher interest income from our short-term investments, unrealized gains related to our non-marketable securities, as well as lower interest expense following the redemption of convertible securities.
Other Income, net Years Ended January 31, Change (in thousands) 2024 2023 $ % Other income, net $ 70,216 $ 13,401 $ 56,815 NM Other income, net, for the year ended January 31, 2024 improved primarily due to higher interest income from our short-term investments.
In addition, accrued liabilities decreased by $16.2 million reflecting lower expenses and timing of payments. These were partly offset by our cash collections, which increased our deferred revenue by $85.8 million. Cash provided by operating activities during the year ended January 31, 2022 was $7.0 million.
The continuing growth of our sales and our expanding customer base led to an increase in accounts receivable of $91.5 million and deferred commissions of $49.1 million. In addition, accrued liabilities decreased by $16.2 million reflecting lower expenses and timing of payments. These were partly offset by our cash collections, which increased our deferred revenue by $85.8 million.
Cash provided by financing activities during the year ended January 31, 2022 was $890.9 million, primarily due to $889.2 million net proceeds from our June 2021 equity offering, $25.2 million of proceeds from the issuance of common stock under the Employee Stock Purchase Plan and $9.7 million of proceeds from the exercises of stock options, partially offset by $5.6 million principal repayments of finance leases, as well as $27.6 million used to repay a portion of our 2024 convertible notes upon redemption. 59 Table of Contents Contractual Obligations and Commitments The following table summarizes our contractual obligations as of January 31, 2023 (in thousands): Payments Due by Period Total Less Than 1 Year 1 to 3 Years 3 to 5 Years More Than 5 Years 0.25% convertible senior notes due 2026 1,158,597 2,875 1,155,722 — — Finance lease obligations 59,347 8,073 17,156 17,422 16,696 Operating lease obligations 53,526 11,993 18,237 10,929 12,367 Purchase obligations 1,146,064 200,706 525,358 420,000 — Total $ 2,417,534 $ 223,647 $ 1,716,473 $ 448,351 $ 29,063 At January 31, 2023, our material short-term and long-term cash requirements for various contractual obligations and commitments consisted of the following: • principal and future interest payments related to our 2026 Notes; • our purchase obligations under non-cancelable agreements for cloud infrastructure capacity commitments and subscription and marketing services.
Cash provided by financing activities during the year ended January 31, 2023 was $30.2 million, due to $29.0 million of proceeds from the issuance of common stock under the Employee Stock Purchase Plan and $5.7 million exercises of stock options, partly offset by $4.5 million of principal repayments of finance leases. 61 Table of Contents Contractual Obligations and Commitments The following table summarizes our contractual obligations as of January 31, 2024 (in thousands): Payments Due by Period Total Less Than 1 Year 1 to 3 Years 3 to 5 Years More Than 5 Years 0.25% convertible senior notes due 2026 $ 1,155,722 $ 2,875 $ 1,152,847 $ — $ — Finance lease obligations 51,274 8,445 17,422 17,422 7,985 Operating lease obligations 46,782 11,799 15,821 11,163 7,999 Purchase obligations 1,166,650 281,222 603,317 282,111 — Total $ 2,420,428 $ 304,341 $ 1,789,407 $ 310,696 $ 15,984 At January 31, 2024, our material short-term and long-term cash requirements for various contractual obligations and commitments consisted of the following: • principal and future interest payments related to our 2026 Notes; • our purchase obligations under non-cancelable agreements for cloud infrastructure capacity commitments and subscription and marketing services; • our finance and operating lease obligations under non-cancelable leases for office space expiring through 2032; and • accounts payable and accrued liabilities on our consolidated balance sheet (primarily short-term in nature).
Investing Activities Cash used in investing activities during the during the year ended January 31, 2023 was $33.3 million, primarily due to purchases of marketable securities, net of proceeds from maturities, of $23.0 million, $7.2 million of cash used for purchases of property and equipment and $3.1 million of additional investment in non-marketable securities. 58 Table of Contents Cash used in investing activities during the year ended January 31, 2022 was $852.1 million, primarily due to cash used to purchase marketable securities, net of maturities, of $835.3 million, as a result of the increased cash balance following our June 2021 equity offering, $4.5 million of net cash used for an immaterial acquisition and $4.3 million of cash to purchase non-marketable securities.
Investing Activities Cash provided by investing activities during the during the year ended January 31, 2024 was $188.0 million, primarily due to proceeds from maturities of marketable securities, net of purchases, of $211.1 million, $6.1 million of cash used for purchases of property and equipment and $2.1 million of additional investment in non-marketable securities.
Our subscription contracts are generally non-cancelable and non-refundable. Services Revenue. Services revenue is comprised of consulting and training services and is recognized over the period of delivery of the applicable services. We recognize revenue from services agreements as services are delivered.
When we enter into multi-year subscriptions, the customer is 54 Table of Contents typically invoiced on an annual basis or pays upfront. Our subscription contracts are generally non-cancelable and non-refundable. Services Revenue. Services revenue is comprised of consulting and training services and is recognized over the period of delivery of the applicable services.
We sell subscriptions directly through our field and inside sales teams, as well as indirectly through channel partners. The majority of our subscription contracts are one year in duration and are invoiced upfront. When we enter into multi-year subscriptions, the customer is typically invoiced on an annual basis or pays upfront.
MongoDB Enterprise Advanced revenue represented 26%, 29% and 35% of our subscription revenue for the years ended January 31, 2024, 2023 and 2022, respectively. We sell subscriptions directly through our field and inside sales teams, as well as indirectly through channel partners. The majority of our subscription contracts are one year in duration and are invoiced upfront.
Adverse macroeconomic conditions include slower or negative economic growth, higher inflation and higher interest rates. During the year ended January 31, 2023, the macroeconomic environment negatively impacted our business. For instance, we experienced slower than historical growth rates for our existing MongoDB Atlas applications.
Macroeconomic and Other Factors Our operational and financial performance is subject to risks including those caused by the adverse macroeconomic environment and the geopolitical landscape. Adverse macroeconomic conditions include slower or negative economic growth, higher inflation and higher interest rates. During the year ended January 31, 2024, the macroeconomic environment negatively impacted our business.
The increase in services revenue was driven primarily by the continued increase in delivery of consulting services. 55 Table of Contents Cost of Revenue, Gross Profit and Gross Margin Percentage Years Ended January 31, Change (in thousands) 2023 2022 $ % Subscription cost of revenue $ 284,583 $ 217,901 $ 66,682 31 % Services cost of revenue 64,721 41,591 23,130 56 % Total cost of revenue 349,304 259,492 89,812 35 % Gross profit $ 934,736 $ 614,290 $ 320,446 52 % Gross margin 73 % 70 % Subscription 77 % 74 % Services (32) % (31) % The increase in subscription cost of revenue was primarily due to a $50.9 million increase in third‑party cloud infrastructure costs, including costs associated with the growth of MongoDB Atlas.
Cost of Revenue, Gross Profit and Gross Margin Percentage Years Ended January 31, Change (in thousands) 2024 2023 $ % Subscription cost of revenue $ 345,233 $ 284,583 $ 60,650 21 % Services cost of revenue 79,252 64,721 14,531 22 % Total cost of revenue 424,485 349,304 75,181 22 % Gross profit $ 1,258,526 $ 934,736 $ 323,790 35 % Gross margin 75 % 73 % Subscription 79 % 77 % Services (42) % (32) % The increase in subscription cost of revenue was primarily due to a $43.5 million increase in third‑party cloud infrastructure costs, including costs associated with the growth of MongoDB Atlas.
Travel costs increased also due to the easing of restrictions related to the COVID-19 pandemic. 56 Table of Contents General and Administrative Years Ended January 31, Change (in thousands) 2023 2022 $ % General and administrative $ 160,498 $ 122,944 $ 37,554 31 % The increase in general and administrative expense was due to higher costs to support the growth of our business and to maintain compliance as a public company.
General and Administrative Years Ended January 31, Change (in thousands) 2024 2023 $ % General and administrative $ 193,558 $ 160,498 $ 33,060 21 % The increase in general and administrative expense was due to higher costs to support the growth of our business.
The new features, capabilities and improvements such as column store indexes, in-app analytics, Atlas Serverless, Atlas Device Sync, allow developer teams to accomplish more over a wider range of workloads while preserving a consistent developer experience and optimizing for modern application architectures. And with Queryable Encryption, we introduced the industry’s first encrypted search scheme using breakthrough cryptography engineering.
We intend to continue to invest in our product offerings with the goal of expanding the functionality and adoption of our developer data platform. During 2022, we introduced new features, capabilities and improvements such as column store indexes, in-app analytics, Atlas Serverless and Atlas Device Sync, allowing developer teams to accomplish more over a wider range of workloads.
MongoDB Enterprise Advanced is our proprietary commercial database server offering for enterprise customers that can run in the cloud, on-premises or in a hybrid environment . MongoDB Enterprise Advanced revenue represented 29%, 35% and 44% of our subscription revenue for the years ended January 31, 2023, 2022 and 2021, respectively.
We expect to continue to see a higher portion of our MongoDB Atlas contracts to be billed monthly in arrears based on usage without requiring upfront commitments. MongoDB Enterprise Advanced is our proprietary commercial database server offering for enterprise customers that can run in the cloud, on-premises or in a hybrid environment .