Free Tool
Margin Calculator
The Margin Calculator takes your revenue and cost of goods to calculate gross margin percentage — the number your ROAS targets must account for to reflect actual profitability.
Enter your total revenue and cost of goods sold to calculate your gross margin percentage.
About Margin Calculator
Gross margin is the percentage of revenue a business retains after covering the direct cost of goods sold. It is the single most important financial input when setting paid media targets, because ROAS is only meaningful when measured against the margin structure of the business it is supposed to serve.
The formula: ((Revenue − Cost of Goods) ÷ Revenue) × 100 = Gross Margin %. A product that generates $100 in revenue with $35 in COGS has a gross margin of 65%.
Gross margin determines the ceiling for profitable ad spend. If a business operates at 40% gross margin, it retains $0.40 of every dollar of revenue before any other operating costs. If that business is running paid media at a 3:1 ROAS ($3 returned per $1 spent), advertising cost accounts for 33 cents of that dollar — leaving only 7 cents of margin before accounting for overhead, fulfillment, returns, and fees. That is a very thin operating position, and it only becomes visible when margin is part of the analysis.
Media buyers use gross margin to calculate minimum viable ROAS: the ROAS floor below which a campaign is generating revenue at a loss. A simple approximation: if gross margin is 50%, a ROAS of 2.0 is roughly break-even on the media spend before other costs. Most businesses need ROAS well above that floor to be truly profitable.
Understanding margin at the product or category level — not just the blended business average — gives media buyers the precision needed to make real optimization decisions rather than managing to a single aggregate target.
Use this tool alongside the Markup Calculator and ROAS Calculator when setting or evaluating performance targets.
All These Calculators. Free on iOS.
Every calculator on this site and more — free on the App Store for iOS.
Paid Media Metrics: Key Terms, Formulas, and Definitions
- Spend
- Spend is the net advertising cost — the hard cost of media only. This does not include management fees, creative production, or any other service fees.
- Impressions
- Impressions are the number of times an ad was shown in a given channel — the total volume of ad views delivered by the advertising spend.
- Cost-per-thousand Impressions (CPM)
- CPM is the cost of purchasing 1,000 impressions. It is the standard buying metric for display, programmatic, and streaming TV advertising. Formula: (Spend ÷ Impressions) × 1,000 = CPM
- Click-through Rate (CTR)
- CTR is the rate at which impressions result in a click. If 1,000 ads are shown and 10 people click, the CTR is 1%. Formula: Clicks ÷ Impressions = CTR
- Clicks
- Clicks are the total number of times an ad was clicked. The click metric is also commonly used as a proxy for website sessions driven by paid advertising.
- Cost-per-click (CPC)
- CPC is the average advertising cost paid per click. Formula: Spend ÷ Clicks = CPC
- Conversions
- Conversions are the total number of desired actions — sales, leads, form submissions, downloads, or other defined goals — attributed to the advertising spend.
- Conversion Rate
- Conversion rate is the percentage of clicks that result in a conversion action — a lead, purchase, download, or other defined goal. Formula: Conversions ÷ Clicks = Conversion Rate
- Cost-per-acquisition (CPA)
- Cost-per-acquisition (CPA), also called cost-per-conversion, is the average amount of advertising spend required to generate one conversion action. Formula: Spend ÷ Conversions = CPA
- Return on Ad Spend (ROAS)
- ROAS measures how much revenue is generated per dollar of advertising spend. A 4x ROAS means $4 in revenue for every $1 spent — but profitability depends on your margin. Formula: Revenue ÷ Spend = ROAS
- Markup
- Markup is the percentage added above the cost of a product to arrive at the selling price. It is calculated relative to cost, not revenue — which is the key distinction between markup and margin. Formula: (Selling Price − Cost) ÷ Cost = Markup %
- Margin
- Gross margin is the percentage of revenue retained after deducting the cost of goods sold. Unlike markup (which is based on cost), margin is calculated relative to revenue — the number that ties directly to advertising profitability targets. Formula: (Revenue − Cost) ÷ Revenue = Margin %
- Revenue
- Revenue is the total income generated from sales before any costs are deducted. In paid media analysis, revenue attributed to advertising spend is the numerator in ROAS calculations.
- Budget
- Budget is the total advertising spend allocated to a campaign or channel for a defined period. Budget planning typically begins with a target CPA or ROAS and works backward from desired conversion volume.
More Tools
Explore More Calculators
Free Strategy Session
Schedule a Free Paid Media Strategy Session
Review your current performance, identify gaps, and walk away with clear next steps.
No pitch. No obligation. Just an honest assessment of your current paid media program.
Schedule Your Strategy CallWhat We Cover