HubSpot vs. Salesforce: Which CRM Stock Is the Better Buy?
Key Points
Many software companies' stocks tanked earlier this year as investors panicked about the possibility that agentic AI could render their products obsolete.
Salesforce trades at a reasonable valuation and is rapidly gaining market share in agentic AI.
HubSpot has higher growth rates and an opportunity to meaningfully expand its net profit margins, but its P/E ratio is lofty.
Early this year, the entire software sector was rocked by an event dubbed the SaaSpocalypse as investors grappled with the idea that large language models and agentic AI could undermine the software-as-a-service (SaaS) business model.
HubSpot (NYSE: HUBS) and Salesforce (NYSE: CRM) both got hit hard in that sell-off, and they've kept sliding since. They are now down by 54% and 40%, respectively, year to date, even though artificial intelligence has been a catalyst for them, not a headwind.
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »
The SaaSpocalypse threat doesn't carry much merit, and many of the stocks that sold off have partial recovered; the iShares Expanded Tech-Software Sector ETF, which was down by about 30% at one point year to date, is now down only 14%. Still, plenty of software stocks look compelling after the deep slump -- HubSpot and Salesforce among them. Here's what investors should consider if they want to choose between those two.
Image source: Getty Images.
Growth vs. profits
HubSpot is the riskier pick of the two, but it's also growing revenue at a faster rate: 23% in the first quarter compared to Salesforce's 14% year-over-yer revenue growth in its most recently reported fiscal quarter.
HubSpot is also gaining market share at a faster rate. It recently branded itself as the "agentic customer platform," while Salesforce cited agentic AI as "the biggest growth opportunity for our customers."
However, Salesforce has HubSpot beat when it comes to profitability. Salesforce recorded a 19% net profit margin in its fiscal 2027 first quarter, while HubSpot only logged a 3.7% net profit margin in calendar Q1.
HubSpot only recently started delivering consistent profits, so it could theoretically expand its margins in the future. Salesforce offers higher margins right now.
Agentforce is a major Salesforce catalyst
Both companies are gaining market share in agentic AI, but Salesforce has more compelling numbers for its Agentforce segment. Agentforce lets companies build and deploy AI agents. Breeze AI does the same thing for HubSpot, but HubSpot includes those sales under its broader subscription revenue category rather than separating them out in a way that makes them clear for investors.
In its fiscal 2027 Q1 presentation, Salesforce revealed that Agentforce's annual recurring revenue had reached $1.2 billion, a 205% year-over-year increase. The AI platform makes its offerings even stickier, since it's even more of a pain for customers to switch to a competing CRM provider after they've set up their AI agents and customer relationship management tools on one platform.
That $1.2 billion in annual recurring revenue comes to $100 million per month, or $300 million per quarter. Salesforce earned $11.1 billion in total in its fiscal 2027 first quarter, which ended April 30, so it may take a while before Agentforce's expansion moves the needle in a meaningful way on the company's top line. However, it's operating in the background and gaining momentum while the rest of the business continues to expand its market share.
Investors don't know exact numbers for HubSpot's Breeze AI, but the company's overall revenue growth rate accelerated from 20% in Q4 2025 to 23% in Q1, so Breeze AI is definitely helping. Salesforce just has bigger baseline numbers, including $33.6 billion in current remaining performance obligations, up 14% year over year. It's also sitting on $67.9 billion in remaining performance obligations, which are set to be monetized over multiple years.
Salesforce has a better valuation
Valuation isn't always the decisive factor in picking stocks, but it certainly should play a role when comparing them. Salesforce's 17.7 P/E ratio offers a more generous margin of safety than HubSpot's premium 95.1 P/E ratio. In order to bring its earnings ratio down to the more reasonable zone where Salesforce trades, HubSpot will have to meaningfully improve its margins. That could take a while.
HubSpot's higher revenue growth rate suggests that it is gaining ground at a faster rate than Salesforce. That certainly bolsters the case for investing in HubSpot, but its high valuation leaves the stock more exposed to further declines if its revenue growth decelerates.
The decision between these two software stocks may ultimately come down to your risk tolerance. Salesforce offers solid growth rates and a more reasonable valuation. However, HubSpot has the potential to grow at a faster rate and expand its margins in the future. HubSpot is riskier but has a higher potential upside, while Salesforce appears to be a promising value stock.
Should you buy stock in HubSpot right now?
Before you buy stock in HubSpot, consider this:
The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and HubSpot wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.
Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $398,052!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,181,688!*
Now, it’s worth noting Stock Advisor’s total average return is 892% — a market-crushing outperformance compared to 205% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.
*Stock Advisor returns as of June 30, 2026.
Marc Guberti has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends HubSpot and Salesforce. The Motley Fool has a disclosure policy.
Recommended Articles











Comments (0)
Click the $ button, enter the symbol, and select to link a stock, ETF, or other ticker.