$StoneCo(STNE)$ The company also posted a presentation to go along with this call. All material can be found at www.Stone.com on the investor relations section. Throughout this conference call, the company will be presenting non-IFRS financial information, including adjusted net income and adjusted free cash flow. These are important financial measures for the company, but are not financial measures as defined by IFRS.
Reconciliations of the company's IFRS financial information to the IFRS financial information appears in today's press release. Finally, before we begin our formal remarks, I would like to remind everyone that today's discussion might include forward-looking statements. These forward-looking statements are not guarantees of future performance, and, therefore, you should not place undue reliance on. These statements are subject to numerous risks and uncertainties that could cause actual results to differ materially from the company's expectations.
Please refer to the forward-looking statements disclosure in the company's earnings press release. In addition, many of the risks regarding the businesses are disclosed in the company's Form 20-F filed with the Securities and Exchange Commission, which is available at www.sec.gov. I'd now like to turn the conference over to your host Rafael Martins, VP of finance and investor relations at StoneCo. Please go ahead.
Rafael Martins--Vice President of Finance and Investor Relations Officer
Thank you, operator. And good evening, everyone. Joining us today on the call, we have our CEO, Thiago Piau; and our chief strategy officer, Lia Matos. Today, we will present our second quarter 2022 results, discuss some recent trends, and provide an updated outlook for our business.
I will now pass it over to Thiago so he can share some highlights of our performance. Thiago?
Thiago Piau--Chief Executive Officer
Thank you, Rafa, and good evening, everyone. In the second quarter, we demonstrated consistent execution, combining strong growth with improving profitability. We produced a strong performance in both TPV and revenue growth while improving our operating margins in both of our segments. We achieved total revenue of 2.3 billion reais, which was 5% above our guidance and up 83% year over year, excluding the negative revenue impact from the credit product in the second quarter '21 in pro forma for Linx.
On the profitability front, our adjusted EBT margins increased sequentially from 4% in the first quarter to 4.6% in the second quarter, driven by improved operating efficiency in our financial service and in our software businesses. As we noted previously, following the partial sale of our stake in Banco Inter, we decided to stop adjusting the bond financial expenses in order to result from the second quarter onwards. As a result, our adjusted EBT in the second quarter reached 107 billion reais, 19% higher than our guidance of over 90 million reais. In our financial services segment, we were especially encouraged by five factors: first, the strong evolution of our payments client base, which crossed the 2 million mark with an acceleration of net adds in the quarter; second, the strong MSMB TPV group of 78% year over year, driven by both our active client base growth and a continued improvement in go-to-market strategy for TON and Stone product; third, we were able to continue increasing our take rate while we increase our average TPV for both Stone and TON products sequentially; fourth, the expansion of our banking platform, generating more engagement and increasing opportunity to monetize clients in the future; and finally, efficiency gains in costs and expenses.
As a result, the financial services segment revenue grew 3.4 times year over year and 102%, excluding the effect associated with the credit product last year. At the same time, EBT margins in the segment increased 3.8% in the first quarter to 4.3% in the second quarter. In our software segment, revenue growth pro forma for Linx reached 23%, mostly driven by a strong performance in our core software. I'm encouraged by the margin evolution is software with sequential improvement of almost 300 basis points in EBITDA margin, which reached over 15% in the quarter.
This improvement was the result of continued efficiency gains in back-office synergies, even though we continue to invest in our distribution, customer service, and marketing capabilities. We expect to continue ramping up our software margins in the second half of the year. I'm pleased with the consistency and direction of our results in the second quarter, and I think this is a solid step forward to producing strong results by year-end. Looking to the second half of the year, we maintain our focus on building on these achievements.
With that said, I will now pass it over to Lia, who will provide more details about our second quarter performance and strategic updates. Lia?
Lia Matos--Chief Operating Officer and Chief Strategy Officer
Thank you, Thiago, and good evening, everyone. As Thiago just summarized the main financial and operating highlights, I will dive a bit deeper into the drivers of our performance. Starting on Slide 7, I will focus on our client base trends. During the quarter, we reached over 2 million MSMB clients with net adds of 196,000, driven by strong commercial performance in both TON and Stone products despite some churn impact from our continuous pricing initiatives.
We have continued optimizing our commercial strategy to onboard smaller clients onto our TON product, while we focus the Stone product on bigger SMBs. This approach addresses our clients' needs more effectively and provides superior unit economics for us. As you can see on Page 8, the strategy has led to better quality in our client base for Stone and TON, both of which grew average TPV over 30% year over year. This, combined with our client base growth, resulted in an MSMB TPV of 69.9 billion reais, 3% above our guidance for the quarter and 78% higher year over year.
At the same time, we improved our monetization with take rates increasing sequentially from 2.06% to 2.09% in the second quarter. On Slide 9, we highlight the continued expansion and engagement with our banking platform. On top of the growth in number of clients actively using our digital banking account, I want to highlight the sequential improvement in ARPAC, which reached 39 reais per month this quarter compared to 33 reais last quarter and three times higher year over year, mostly driven by higher interest rates on average deposits from clients' bank accounts. I also want to briefly update you on the performance of our legacy portfolio.
This quarter, we received 134 million reais of cash inflows, which decrease the fair value of the credit portfolio on our balance sheet to 129 million reais. On Slide 10, we will move on to our key accounts business. As we show on the left side of the page, TPV from key accounts had a slight decrease during the period as we continue to deprioritize sub-acquirers. On the other hand, the TPV growth in platform services was strong at 95% year over year.
Due to this mix shift and the increase of CDI rates, take rates have increased sequentially to 0.86%. Now, let's shift to our software segment on Slides 11 and 12. Softer revenue in the second quarter of '22 reached 351 million reais, representing 23% year-over-year growth pro forma for Linx. At the same time, adjusted EBITDA also improved, reaching 53 million reais with 15.2% adjusted EBITDA margin compared to 12.3% in the first quarter and 9.2% in the second quarter of '21 pro forma for Linx.
We expect profitability improvements to continue throughout the year as we capture efficiency gains and back-office synergies even while we continue to invest on several fronts. On Slide 12, I want to highlight the main drivers of this performance and the progress of our software strategy. First, software revenue growth was driven mainly by core revenue growth that was up 28% year over year, driven by the higher number of POS/ERP locations and average ticket, as well as the consolidation of [Inaudible]. This result was partially offset by the digital business, which decreased revenues by 6%.
In order to strengthen our strategy of helping our software clients to sell through multiple channels, we concluded the acquisition of Plugg.To, which streamlines integrations with marketplaces. We believe we have a huge opportunity here to help our clients become truly omnichannel and increase their sales. The second point I want to highlight is that we're gaining scale and improving margins. With annualized revenues of 1.4 billion reais, we continue to generate operating leverage from our integration efforts and efficiency gains in costs and expenses.
And we expect this trend to continue in the second half of this year. Finally, we see significant room to grow organically and through new investments in our core POS/ERP products, cross-sell financial services to our existing client base, and help our clients sell more through multiple channels. Now, I would like to pass it over to Rafa so he can discuss in more detail some of our key financial metrics. Rafa?
Rafael Martins--Vice President of Finance and Investor Relations Officer
Thanks, Lia. Before I go over our financial results, I would like to clarify that as anticipated in our last earnings release, from the second quarter 2022 onwards, we will no longer adjust our results for the financial expenses related to our bond. To allow for like-to-like comparison, we have included in our earnings material historical numbers in the same criteria that we are now adopting. That said, starting on July 13, I would like to highlight a few key points.
As you can see, our results are consistently improving with revenue and margins from both our financial services and software segments increasing sequentially. Our adjusted net income was 76.5 million reais, compared with 51.7 million reais last quarter, a 48% sequential improvement. For the rest of the year, we expect profitability to keep increasing while balancing it with healthy growth levels. As we have already detailed our top-line trends, I would move directly to July 15 to focus on our costs and expenses pro forma for Linx.
Following the trend we started seeing last quarter, we gained leverage in most of our costs and expenses line both quarter over quarter and year over year, with cost of services and selling expenses being the highlights for the quarter. We'll focus on our quarter-over-quarter evolution which better shows our current trends. Cost of services as a percentage of revenue decreased 540 basis points, driven mainly by lower data center costs, efficiency gains related to our registry business, and lower D&A. In administrative expenses, we had a small gain in efficiency as a percentage of revenue.
As our business kept growing, we had higher third-party services expenses, which was the main responsible for the absolute growth in this line. As we continue to rationalize G&A growth, we expect to continue gaining leverage in this line over time. Regarding selling expenses, this line decreased almost 400 basis points as a percentage of revenue, as our marketing expenses returned to more normalized levels. We'll keep investing in our growth through commercial efforts in the second half of the year.
Financial expenses with the bond included in the previous quarters for comparison purposes presented a sequential growth of around 710 basis points as a percentage of revenue, mainly due to three factors: first, the further increases in CDI rates that increased on average 20% quarter over quarter; second, a larger mix of prepayment revenue; and finally, our decision to increase the duration of our funding lines. Lastly, other expenses as a percentage of revenue, had an increase of almost 190 basis points, mainly explained by the write-off of assets from the discontinued Linx Pay business in the amount of 16.6 million reais, the write-off of POS equipment, and other smaller effects. We are encouraged by the trends we are seeing, and we will keep looking for opportunities to be more efficient in the second half of the year. In addition to our P&L evolution, this quarter, we continued to generate cash and improve our liquidity.
Our adjusted net cash improved by 195.6 million reais in the quarter and 455.6 million reais in the first half of the year, reaching 2.6 billion reais. With that said, I'll pass it back to Thiago so he can provide you with additional updates about our team and our outlook for the third quarter. Thiago?
Thiago Piau--Chief Executive Officer
Thank you, Rafa. Before we move to our outlook for the third quarter, I would like to give an update about some additional changes to our executive team. Marcelo Baldin, our chief financial officer, is departing from the company after five years of services, building out our finance functions and helping the company execute on its IPO. Baldin will be replaced by Silvio Morais, who was named our interim CFO.
Silvio, who has extensive experience in finance, including serving 20-plus years as controller at Ambev, will temporarily step down from our board to assume his new duties. Also, Tatiana Malamud was appointed our chief legal officer, a new role which will serve as part of the executive committee. Tatiana has 30 years of experience as in-house counsel and head of legal departments for different financial institutions, as well as deep experience in capital markets. We would like to thank Baldin for his valuable contributions to Stone over the past five years and wish him success in his new endeavors.
I'm excited to have Silvio join the management team and benefit from his significant experience in finance. Also, I would like to welcome Tatiana to our team and look forward to her developing this critical new role for the company. Finally, let's move to Slide 16, where we will share with you our third quarter outlook for the business. We expect a total revenue and income above 2.4 billion reais, representing a year-over-year growth above 63.3%.
For MSMB TPV, we expect volumes between 73 billion and 74 billion reais with year-over-year growth between 41.4% and 43.3%. Finally, regarding adjusted EBT, we expect more than 125 million reais without adjusting for the board financial expenses compared to 106.7 million reais for the second quarter. We still have a long path ahead of us, but we believe the consistent results achieved in the first half of the year demonstrate we are on the right track. We will encourage outlook for the second half of 2022 in which we continue to expand margins while keeping strong growth levels.
With that said, operator, can you please open the call up to questions?
[Operator instructions] And our first question today will come from Tito Labarta with Goldman Sachs. Please go ahead.
Tito Labarta--Goldman Sachs -- Analyst
Hi. Good evening, everyone. Thank you for the call and taking my questions. A couple of questions.
I guess, first on the take rate on -- MSMB take rate, we saw a little bit more expansion this quarter. Just help us think about, you know, are you done with repricing there? Is any more room to reprice? Is this kind of the take rate that we should expect from here? Because you also saw, like, net margin ads accelerate. Just help us think about repricing versus, sort of, merchants avenue, ability to add more merchants. How is, like, the competitive environment to allow you to do that? And second question, you know, good job on costs and expenses, definitely seeing some improvements there.
Is there more to do? Help us think about how that can evolve from here. You know, where else can you save on costs and control expenses to improve margins from here? Thank you.
Comments
Thanks for sharing ... interesting insights