The ROI formula and what "all costs" means
ROI stands for Return on Investment: the net profit an investment produces, divided by everything it cost to get there. The formula is as follows.
ROI (%) = (Revenue - Total investment) / Total investment x 100
The part almost every definition skips is what counts as "total investment." It isn't just the money spent on ads. Google Ads' own ROI documentation makes that clear with an example for a physical product: total cost includes "the manufacturing cost of all the items you sold plus your advertising costs," meaning production or product cost plus ad spend, not ad spend on its own.
In practice, for a business selling a physical product, total investment usually adds up: ad spend (SEA, social ads, and similar), product or cost of goods sold, staff time tied to the campaign or to fulfilling those sales, logistics and shipping, and marketing tools or software. A marketing team rarely has all these numbers sitting in one place. Product cost usually lives with purchasing or production, staff cost with HR or internal accounting, and tool costs are split across several departments. That's why a reliable ROI almost always needs figures from finance, not estimates from marketing.
Net profit, the top half of the formula, is what's left once that entire investment is subtracted from the revenue it generated. Subtract only the ad spend, and what you get isn't ROI anymore; at best it's a different flavor of ROAS, and any decision built on it ignores whether the business is actually making money on that campaign.
How wide that cost base gets drawn varies by business. Some teams also allocate a share of fixed costs, like rent or general overhead, while others deliberately stick to costs directly traceable to a given campaign. Which approach gets chosen matters less than staying consistent with it across periods. An ROI calculated with overhead one quarter and without it the next stops being comparable.
