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. Q4 total revenue was $32.2 billion, down 4% or up 2% year-over-year on a constant currency basis. Had foreign exchange rates remained constant with Q4 of last year, total revenue would have been approximately $2 billion higher. Q4 total expenses were $25.8 billion, up 22% compared to last year.
In terms of the specific line items, cost of revenue increased 31%, driven mostly by a write-down of certain data center assets as well as growth in infrastructure-related costs. R&D increased 39%, marketing and sales increased 4%, and G&A decreased 7%. Operating lease impairments and employee-related costs were the largest contributors to growth for all three expense lines. However, growth in marketing and sales was partially offset by lower marketing spend and growth in G&A was more than fully offset by a decrease in legal-related expenses.
We ended the fourth quarter with over 86,400 employees, which includes a substantial majority of the approximately 11,000 employees impacted by our previously announced layoffs who remained on payroll as of December 31 due to applicable legal requirements. We expect the vast majority of the impacted employees will no longer be captured in our reported headcount figures by the end of the first quarter of 2023. Fourth quarter operating income was $6.4 billion, representing a 20% operating margin. Our tax rate for the quarter was 24%. Net income was $4.7 billion or $1.76 per share. Capital expenditures, including principal payments on finance leases, were $9.2 billion, driven by investments in servers, data centers and network infrastructure. Free cash flow was $5.3 billion and we ended the year with $40.7 billion in cash and marketable securities. In the fourth quarter, we repurchased $6.9 billion of our Class A common stock, bringing our total share repurchases for the full year to $27.9 billion. We had $10.9 billion remaining on our prior authorization as of December 31. And today, we announced a $40 billion increase in our stock repurchase authorization.
Moving now to our segment results. I will begin with our Family of Apps segment. Our community across the Family of Apps continues to grow. We estimate that approximately 2.96 billion people used at least one of our Family of Apps on a daily basis in December and that approximately 3.74 billion people used at least one on a monthly basis. Facebook continues to grow globally and engagement remains strong. We reached 2 billion Facebook daily active users for the first time in December, up 4% or 71 million compared to last year. DAUs represented approximately 67% of the 2.96 billion monthly active users in December. MAUs grew by 51 million or 2% compared to last year.
Q4 total Family of Apps revenue was $31.4 billion, down 4% year-over-year. Q4 Family of Apps ad revenue was $31.3 billion, down 4%, but up 2% on a constant currency basis. Consistent with our expectations, Q4 revenue remained under pressure from weak advertising demand which we believe continues to be impacted by the uncertain and volatile macroeconomic landscape.
The financial services and technology verticals were the largest negative contributors to the year-over-year decline in Q4, but both have relatively smaller shares of our revenue. Growth remained negative in our largest verticals, online commerce and CPG, though the pace of year-over-year decline in online commerce has slowed compared to last quarter. The largest positive contributors to year-over-year growth in Q4 were the travel and healthcare verticals, though both are relatively smaller verticals in absolute share. Foreign currency remained a significant headwind to advertising revenue growth in all international regions.
On a user geography basis, ad revenue growth was strongest in Rest of World at 5%. North America was flat, while Asia-Pacific and Europe declined 3% and 16% respectively. In Q4, the total number of ad impressions served across our services increased 23% and the average price per ad decreased 22%. Impression growth was primarily driven by the Asia-Pacific and Rest of World regions. The year-over-year decline in pricing was primarily driven by strong impression growth, especially from lower monetizing surfaces and regions, lower advertiser demand and foreign currency depreciation. While overall pricing remains under pressure from these factors, we have continued to make improvements to our ads targeting and measurement that we believe are driving more conversions and better returns for advertisers. Family of Apps' other revenue was $184 million in Q4, up 19%, with strong business messaging revenue growth from our WhatsApp business platform partially offset by a decline in other line items.
We continue to direct the majority of our investments towards the development and operation of our Family of Apps. In Q4, Family of Apps expenses were $20.8 billion, representing 81% of our overall expenses. Family of Apps' expenses were up 23% due primarily to restructuring-related expenses and growth in infrastructure-related costs. Family of Apps' operating income was $10.7 billion, representing a 34% operating margin. Within our Reality Labs segment, Q4 revenue was $727 million, down 17% due to lower Quest 2 sales. Reality Labs expenses were $5 billion, up 20% due primarily to employee-related costs and restructuring-related expenses. Reality Labs operating loss was $4.3 billion.
Before turning to the outlook, I'd like to discuss our work to grow profitability by scaling monetization and improving our operational efficiency. There are two primary levers to increasing monetization: growing supply and growing demand. Growing ad supply gives businesses more opportunities to get in front of people and we are focused on enabling that in a couple of ways. First and foremost, we remain focused on building engaging experiences for the people who use our apps. We are coming into 2023 with a strong foundation as Reels continues to scale and we are seeing in-feed recommendations contribute to engagement as we help people discover new content in their feeds. We will continue to invest in making these experiences best-in-class. The other side of growing supply comes from more effectively monetizing the surfaces within our apps, including those that have a lower level of ads today. In the nearer term, ramping Reels monetization remains a primary focus. Over the longer term, we see opportunities to continue improving Facebook and Instagram monetization while also scaling revenue contributions from our messaging platforms. Growing advertiser demand is the other focus and a big effort here is around continuing to drive advertiser performance. While we are still contending with the broader macro uncertainty and signals landscape weighing on advertiser demand in the near-term, we are making good progress on our roadmap and are already seeing improvements to add performance and measurement from the investments we have made.
We see opportunities for continued gains in the near and medium-term, with our AI investments powering a lot of this work as we continue to improve ads ranking and enable increased automation for advertisers to make it easier for them to run campaigns and use our systems to optimize their performance. Another opportunity we have is to further scale onsite conversions through products like click-to-message, lead ads and shop ads. Click-to-message ads continue to grow quickly and we believe they are bringing incremental demand onto our platform, with over half of click-to-message advertisers exclusively using click-to-messaging ads on our platform. We see further opportunity as we continue to scale click-to-WhatsApp ads and are investing in growing newer formats like shop ads. Over the long-term, we are investing heavily in AI to develop and deploy privacy-enhancing technologies and continue building new tools that will make it easier for advertisers to create and deliver more relevant and engaging ads.
Moving now to our efficiency work, we took significant actions in 2022 to operate more efficiently. In Q4, we made the difficult decision to layoff employees while deprioritizing certain projects and curtailing non-headcount-related expenses. We have applied the same scrutiny to our physical assets. We identified opportunities to consolidate our office facilities and we have streamlined our future data centers to a new architecture, which we believe will be more cost efficient and more flexible that provides us optionality to support both AI and non-AI workloads. In Q4, we recorded $4.2 billion of total restructuring costs in connection with all of these efforts and expect there to be some additional costs in 2023 in areas like office facilities impairments as we continue this work. As Mark has said, these actions are just the beginning of our efficiency efforts, and we remain keenly focused on this in 2023. We are working across the company to deprioritize lower ROI work, move faster, increase productivity and reduce costs across the business. As part of this, we are carefully scrutinizing our hiring needs, actively reevaluating projects and reducing management layers. I'm confident that our company-wide focus on efficiency will position us to be an even more productive organization going forward.
Turning now to the revenue outlook, we expect first quarter 2023 total revenue to be in the range of $26 billion to $28.5 billion. Our guidance assumes foreign currency will be an approximately 2% headwind to year-over-year total revenue growth in the first quarter based on current exchange rates. Turning now to the expense outlook, we anticipate our full year 2023 total expenses will be in the range of $89 billion to $95 billion, lower from our prior outlook of $94 billion to $100 billion due to slower anticipated growth in payroll expenses and cost of revenue.
We now expect to record an estimated $1 billion in restructuring charges in 2023 related to consolidating our office facilities footprint. This is down from our prior estimate of $2 billion as we recorded a portion of the charges in the fourth quarter of 2022. We may incur additional restructuring charges as we progress further in our efficiency efforts. Turning now to the CapEx outlook for 2023, we expect capital expenditures to be in the range of $30 billion to $33 billion, lowered from our prior estimate of $34 billion to $37 billion.
The reduced outlook reflects our updated plans for lower data center construction spend in 2023 as we shift to a new data center architecture that is more cost efficient and can support both AI and non-AI workloads. Substantially, all of our capital expenditures continue to support the Family of Apps. On to tax. Absent any changes to U.S. tax law, we expect our full year 2023 tax rate percentage to be in the low 20s. In addition, as noted on previous calls, we continue to monitor developments regarding the viability of transatlantic data transfers and their potential impact on our European operations.
In closing, 2022 was a challenging but pivotal year for our business. We made important progress on our priorities and have taken significant steps to improve our efficiency and productivity. We are set up well to build on this work in 2023 as we continue investing for future growth while remaining focused on delivering strong financial performance. With that, Dave, let's open up the call for questions.