Methodology
How AdMargins calculates your profit
Standard, well-known formulas, applied the same way everywhere in the product. Here is every one of them, with what it means.
Our rules
- Inputs are stored, results are recalculated: change a cost and every number updates. Nothing is guessed: every result follows from your numbers.
- Totals are added up first and ratios are calculated from the totals, never averaged. Total ROAS = total revenue ÷ total ad spend.
- Numbers are calculated at full precision and rounded only for display, half away from zero: 4.225 shows as 4.23.
- When a number can’t be calculated (for example, no sales yet), you see “—” and the reason, never a misleading zero.
- Every formula is checked by hundreds of automated tests and recomputed by a second, separate implementation (our own, in another programming language) with exact decimal arithmetic.
Three kinds of profit, and which one you’re looking at
Ad platforms and stores count sales differently, so AdMargins labels which profit each number is.
- Estimated campaign profit
- Per campaign, from the revenue the ad platform reports and the costs you enter. Platforms count sales their ads helped with, so one order can be claimed by Meta and Google at once. Good for comparing campaigns; treat it as an estimate.
- Store profit
- From your store’s own sales for the period, minus the same costs and all ad spend (the store profit check, Pro). It can’t be inflated by platform attribution, but it includes sales that didn’t come from ads.
- Incremental profit
- The extra profit the ads caused, beyond sales you would have made anyway. Measuring it needs experiments such as hold-out tests, so AdMargins doesn’t claim it.
Every formula
Brand profit (imported ad data)
- Ad spend
From the ad platform: amount spent / costWhat was spent on ads in this period.
- Revenue
From the ad platform: purchase / conversion valueRevenue the ad platform attributes to these ads, before refunds.
- Purchases
From the ad platform: purchases / conversionsOrders the ad platform attributes to these ads.
- ROAS
Revenue ÷ Ad spendRevenue for every 1 spent on ads. It ignores costs, so compare it with break-even ROAS.
- Break-even ROAS
1 ÷ Contribution marginThe ROAS where profit is exactly zero after product costs, fees, refunds and fulfilment.
- Target ROAS
1 ÷ (Contribution margin − Target margin × (1 − Refund rate))The ROAS needed to keep the brand’s target profit margin. With the discount or tax options, the share of net revenue changes accordingly.
- POAS
Contribution ÷ Ad spendGross profit generated for every 1 spent on ads. Above 1× the ads make money; below 1× they lose money.
- Refunds & returns
Revenue × Refund rateRevenue expected to be refunded.
- Net revenue
Revenue − RefundsRevenue actually kept after refunds. Discounts and tax are taken out first, if set.
- Product costs
Net revenue × Product cost %What the products sold cost. Returned items are assumed to go back into stock, unless you set a resale share below 100%: then the unsellable ones are added too.
- Payment fees
Revenue × Payment fee %Processor fees on all orders. Most processors keep them when an order is refunded. Plus the fixed fee per order, if set.
- Fulfilment
Purchases × Fulfilment per orderShipping, packing and handling for every order. Includes packaging per order, if set.
- Gross profit
Net revenue − Product costs − Payment fees − FulfilmentWhat the sales leave to pay for ads and profit (contribution). Return handling is taken off too, if set.
- Profit
Gross profit − Ad spendWhat these ads earned after every variable cost, estimated from the revenue the platform reports.
- Profit margin
Profit ÷ Net revenueHow much of every sale is kept as profit.
- Contribution margin
Gross profit ÷ RevenueShare of each unit of revenue left to pay for ads and profit.
- AOV
Revenue ÷ PurchasesAverage value of one order.
- CPA
Ad spend ÷ PurchasesWhat the ads cost, on average, to get one order.
- Max CPA
Gross profit ÷ PurchasesThe most the ads can cost per order before orders lose money.
- CPM
Ad spend ÷ Impressions × 1,000What 1,000 ad views cost.
- CPC
Ad spend ÷ ClicksWhat one click to the site cost.
- CTR
Clicks ÷ ImpressionsShare of people who saw the ad and clicked.
- Conversion rate
Purchases ÷ ClicksShare of clicks that became orders.
- Discounts
Revenue × Discount %Only when the ad platform reports revenue before discounts (set in the brand’s costs).
- Tax removed
Paid − Paid ÷ (1 + Tax %)Only when the platform’s revenue includes VAT or sales tax: it’s owed to the tax office, so it’s taken out before profit.
- Return handling
Purchases × Refund rate × Handling cost per returnPostage, inspection and repackaging of returned orders, on top of the refunded revenue.
Store profit check
- Store revenue
From your store: all orders in the period, before refunds, without taxEvery sale in the period, including sales that didn’t come from ads.
- Revenue claimed by platforms
Σ Purchase value reported by each ad platformWhat the ad platforms say their ads brought in. The same order can be claimed by more than one platform.
- MER
Store revenue ÷ Total ad spendWhat your store sold for every 1 spent on all ads. Also called blended ROAS. Platform attribution can’t inflate it.
- Break-even MER
1 ÷ (Store gross profit ÷ Store revenue)The MER at which the whole store’s profit after ads is exactly zero.
- Store profit
Store gross profit − Total ad spend − Other costsProfit on everything the store sold, after product costs, fees, shipping, refunds, all ad spend and other costs. Uses the same costs as the rest of the dashboard.
- Profit by platform numbers
Gross profit of claimed revenue − Ad spend − Other costsThe profit shown in the rest of the dashboard, which trusts what the ad platforms report.
- Difference
Store profit − Profit by platform numbersNegative means the platforms make the ads look more profitable than they really are.
Calculator: ad performance
- CPM
Ad spend ÷ Impressions × 1,000What you pay for your ad to be shown 1,000 times.
- CPC
Ad spend ÷ Link clicksWhat you pay, on average, for one person to click your ad.
- CTR
Link clicks ÷ Impressions × 100%Out of everyone who saw your ad, the share who clicked.
- Conversion rate
Sales ÷ Link clicks × 100%Out of everyone who clicked, the share who bought.
- CPA
Ad spend ÷ SalesWhat you paid in ads, on average, to get one sale.
- CPL
Ad spend ÷ LeadsWhat you paid in ads, on average, to get one lead.
- Lead rate
Leads ÷ Link clicks × 100%Out of everyone who clicked, the share who became a lead. Leads from instant forms don’t need a link click, so this can exceed 100% for those campaigns.
- Lead-to-sale rate
Sales ÷ Leads × 100%Out of all your leads, the share who bought.
Calculator: revenue & profit
- Revenue
Sales × Average order value (or as entered)Total money customers paid you from these ad sales, before refunds.
- ROAS
Revenue ÷ Ad spendRevenue for every 1 spent on ads. 3× means 3 back for every 1 spent. This is revenue, not profit.
- Refunds
Revenue × Refund rateRevenue you expect to refund. Refunded products are assumed to go back into stock; payment fees and shipping are not recovered.
- Cost of sales
Sales × Cost per saleWhat all the sales cost you: product (refunded items go back to stock), shipping, other per-sale costs and payment fees.
- Gross profit
Revenue − Refunds − Cost of salesWhat is left from sales after refunds, product, shipping and payment fees, before ad spend.
- Profit
Gross profit − Ad spend − Other fixed costsEstimated profit after product costs, ad spend and other fixed costs.
- Profit margin
Profit ÷ (Revenue − Refunds) × 100%How much of the revenue you keep, after refunds, is profit.
- ROI
Profit ÷ (Ad spend + Other fixed costs) × 100%Profit for every 1 put into marketing. 50% means 0.50 profit for every 1 invested. Negative means a loss.
Calculator: break-even
- Payment fee per sale
Price × Payment fee %What the payment fee costs you on one sale.
- Cost per sale
Product cost × (1 − Refund rate) + Shipping + Other cost per sale + Price × Payment fee %Everything one sale costs you before advertising.
- Margin before ads
Break-even CPA ÷ Price × 100%The share of each sale’s price left to pay for ads and profit.
- Break-even CPA
Price − Refund per sale − Cost per saleThe most you can spend on ads to get one sale before that sale becomes unprofitable.
- Break-even ROAS
Price ÷ Break-even CPAIf your ROAS is below this, your ads lose money. Above it, they make money. Excludes other fixed costs.
- Target CPA
Break-even CPA − Target margin × Price × (1 − Refund rate)The most you can spend on ads per sale and still keep your target profit margin.
- Target ROAS
Price ÷ Target CPAThe ROAS you need to hit your target profit margin.
- Break-even conversion rate
CPC ÷ Break-even CPA × 100%At your cost per click, the share of clickers who must buy for your ads to break even.
- CPA headroom
Break-even CPA − CPAHow much more you could pay per sale before losing money. Negative means each sale already loses money.
Calculator: customer lifetime
- Lifetime revenue
Average order value × Purchases per customerTotal a typical customer spends with you over time.
- CLV
Break-even CPA × Purchases per customerProfit before ad costs from a typical customer over all their purchases. Simple margin-based CLV: no discounting or churn modelling.
- LTV:CAC
CLV ÷ CPAHow many times over a customer pays back what it cost to acquire them. Above 1× means customers are profitable over their lifetime.
- Max profitable CAC
Purchases per customer × Target CPAThe most you can spend to win one new customer and still keep your target margin across all their purchases.
- Required conversion rate
CPC ÷ Max profitable CAC × 100%At your cost per click, the share of clickers who must buy for you to hit your target margin.
See these formulas at work with your own numbers.
Try the calculator