Thanks, Mark, and good afternoon, everyone. Let's begin with our consolidated results. All comparisons are on a year-over-year basis unless otherwise noted. Q1 total revenue was $36.5 billion, up 27% on both a reported and constant currency basis. Q1 total expenses were $22.6 billion, up 6% compared to last year.
In terms of the specific line items, cost of revenue increased 9% as higher infrastructure-related costs were partially offset by lapping Reality Labs' inventory-related valuation adjustments. R&D increased 6%, driven mostly by higher headcount-related expenses and infrastructure costs, which were partially offset by lower restructuring costs. Marketing and sales decreased 16% due mainly to lower restructuring costs, professional services and marketing spend. G&A increased 20% as higher legal-related expenses were partially offset by lower restructuring costs.
We ended the first quarter with over 69,300 employees, up 3% from Q4. First quarter operating income was $13.8 billion, representing a 38% operating margin. Our tax rate for the quarter was 13%. Net income was $12.4 billion or $4.71 per share. Capital expenditures, including principal payments on finance leases, were $6.7 billion, driven by investments in servers, data centers and network infrastructure. Free cash flow was $12.5 billion. We repurchased $14.6 billion of our Class A common stock and paid $1.3 billion in dividends to shareholders, ending the quarter with $58.1 billion in cash and marketable securities and $18.4 billion in debt.
Moving now to our segment results. I'll begin with our Family of Apps segment. Our community across the Family of Apps continues to grow, with approximately 3.2 billion people using at least one of our Family of Apps on a daily basis in March. Q1 total Family of Apps revenue was $36 billion, up 27% year-over-year. Q1 Family of Apps ad revenue was $35.6 billion, up 27% or 26% on a constant currency basis.
Within ad revenue, the online commerce vertical was the largest contributor to year-over-year growth, followed by gaming and entertainment and media. On a user geography basis, ad revenue growth was strongest in Rest of World and Europe at 40% and 33%, respectively. Asia Pacific grew 25% and North America grew 22%. In Q1, the total number of ad impressions served across our services increased 20%, and the average price per ad increased 6%. Impression growth was mainly driven by Asia Pacific and Rest of World. Pricing growth was driven by advertiser demand, which was partially offset by strong impression growth, particularly from lower-monetizing regions and services. Family of Apps other revenue was $380 million in Q1, up 85%, driven by business messaging revenue growth from our WhatsApp business platform.
We continue to direct the majority of our investments toward the development and operation of our Family of Apps. In Q1, Family of Apps expenses were $18.4 billion, representing approximately 81% of our overall expenses. Family of Apps expenses were up 7% due mainly to higher legal and infrastructure costs that were partially offset by lower restructuring costs. Family of Apps operating income was $17.7 billion, representing a 49% operating margin. Within our Reality Labs segment, Q1 revenue was $440 million, up 30%, driven by Quest headset sales. Reality Labs expenses were $4.3 billion, down 1% year-over-year as higher head count-related expenses were more than offset by lapping inventory-related valuation adjustments and restructuring costs. Reality Labs operating loss was $3.8 billion. Turning now to the business outlook.
There are 2 primary factors that drive our revenue performance: our ability to deliver engaging experiences for our community and our effectiveness at monetizing that engagement over time. On the first, we remain pleased with engagement trends and have strong momentum across our product priorities. Our investments in developing increasingly advanced recommendation systems continue to drive incremental engagement on our platform, demonstrating that people are finding added value by discovering content from accounts they are not connected to. The level of recommended content in our apps has scaled as we've improved these systems, and we see further opportunity to increase the relevance and personalization of recommendations as we advance our models. Video also continues to grow across our platform, and it now represents more than 60% of time on both Facebook and Instagram. Reels remains the primary driver of that growth, and we're progressing on our work to bring together Reel's longer-form video and live video into one experience on Facebook. In April, we rolled out this unified video experience in the U.S. and Canada, which is increasingly powered by our next-generation ranking architecture that we expect will help deliver more relevant video recommendations over time.
We're also introducing deeper integrations of generative AI into our apps in the U.S. and more than a dozen other countries. Along with using Meta AI within our chat surfaces, people will now be able to use Meta AI in search within our apps as well as feed and groups on Facebook. We expect these integrations will complement our social discovery strategy as our recommendation systems help people to discover and explore their interests, while Meta AI enables them to dive deeper on topics they're interested in. Threads also continues to see good traction as we continue to ship valuable features and scale the community. Now to the second driver of our revenue performance, increasing monetization efficiency. There are 2 parts to this work. The first is optimizing the level of ads within organic engagement. Here, we continue to advance our understanding of users' preferences for viewing ads to more effectively optimize the right time, place and person to show an ad to. For example, we are getting better at adjusting the placement and number of ads in real time based on our perception of a user's interest and ad content and to minimize disruption from ads as well as innovating on new and creative ad formats.
We expect to continue that work going forward, while surfaces with relatively lower levels of monetization, like video and messaging, will serve as additional growth opportunities. The second part of improving monetization efficiency is enhancing marketing performance. Similar to our work with organic recommendations, AI is playing an increasing role in these efforts. First, we are making ongoing ads modeling improvements that are delivering better performance for advertisers. One example is our new ads ranking architecture, Meta Lattice, which we began rolling out more broadly last year. This new architecture allows us to run significantly larger models that generalize learnings across objectives and surfaces in place of numerous smaller ad models that have historically been optimized for individual objectives and surfaces. This is not only leading to increased efficiency as we operate fewer models but also improving ad performance. Another way we're leveraging AI is to provide increased automation for advertisers. Through our Advantage+ portfolio, advertisers can automate one step of the campaign setup process, such as selecting which ad creative to show, or automate their campaign completely using our end-to-end automation tools, Advantage+ shopping and Advantage+ app ads. We're seeing growing use of these solutions, and we expect to drive further adoption over the course of the year while applying what we learned to our broader ads investments. Next, I'd like to discuss our approach to capital allocation.
We continue to see compelling investment opportunities to both improve our core business in the near term and capture significant longer-term opportunities in generative AI and Reality Labs. As we develop more advanced and compute-intensive recommendation models and scale capacity for our generative AI training and inference needs, we expect that having sufficient infrastructure capacity will be critical to realizing many of these opportunities. As a result, we expect that we will invest significantly more in infrastructure over the coming years. Our other long-term initiatives that we're continuing to make significant investments in is Reality Labs. We are also starting to see our AI initiatives increasingly overlap with our Reality Labs work. For example, with Ray-Ban Meta smart glasses, people in the U.S. and Canada can now use our multimodal Meta AI assistant for daily tasks without pulling out their phone. Longer term, we expect generative AI to play an increasing role in our mixed reality products, making it easier to develop immersive experiences. Accelerating our AI efforts will help ensure we can provide the best version of our services as we transition to the next computing platform. We expect to pursue these opportunities while maintaining a focus on operating discipline, and we believe our strong financial position will allow us to support these investments while also returning capital to shareholders through share repurchases and dividends. In addition, we continue to monitor an active regulatory landscape, including the increasing legal and regulatory headwinds in the EU and the U.S. that could significantly impact our business and our financial results. We also have a jury trial scheduled for June in a suit brought by the state of Texas regarding our use of facial recognition technology, which could ultimately result in a material loss.
Turning now to the revenue outlook. We expect second quarter 2024 total revenue to be in the range of $36.5 billion to $39 billion. Our guidance assumes foreign currency is a 1% headwind to year-over-year total revenue growth based on current exchange rates. Turning now to the expense outlook. We expect full year 2024 total expenses to be in the range of $96 million to $99 billion, updated from our prior outlook of $94 million to $99 billion due to higher infrastructure and legal costs. For Reality Labs, we continue to expect operating losses to increase meaningfully year-over-year due to our ongoing product development efforts and our investments to further scale our ecosystem. Turning now to the CapEx outlook. We anticipate our full year 2024 capital expenditures will be in the range of $35 billion to $40 billion, increased from our prior range of $30 billion to $37 billion as we continue to accelerate our infrastructure investments to support our AI road map. While we are not providing guidance for years beyond 2024, we expect CapEx will continue to increase next year as we invest aggressively to support our ambitious AI research and product development efforts.
On to tax. Absent any changes to our tax landscape, we expect our full year 2024 tax rate to be in the mid-teens.
In closing, Q1 was a good start to the year. We're seeing strong momentum within our Family of Apps and are making important progress on our longer-term AI and Reality Labs initiatives that have the potential to transform the way people interact with our services over the coming years. With that, Krista, let's open up the call for questions.