Pricing
August 15, 20267 min read

How to Price a Product for a Target Profit Margin

Most pricing advice starts and ends with one formula: price equals cost divided by one minus your target margin. It's clean, it's memorable, and for a huge number of real businesses, it quietly produces the wrong number.

The formula everyone starts with

If your cost of goods is $12 and you want a 40% margin, the standard approach says: price = $12 / (1 − 0.40) = $20. Sell at $20, and 40% of that ($8) is profit. Simple, and correct — as far as it goes.

The problem is that "cost" in that formula usually only means the cost of physically making or sourcing the product. It doesn't account for two things that come directly out of your revenue on nearly every sale: payment processing fees, and — if you're running paid acquisition — the cost of the ad that got someone to buy in the first place.

Where the simple formula breaks down

Payment processors don't charge a flat fee on your cost — they take a percentage of the price, plus usually a small fixed amount. A typical rate is around 2.9% + $0.30 per transaction. That percentage scales with whatever price you charge, which means it has to be part of the equation you're solving, not something you subtract afterward.

Ad spend works the same way, if you're paying to acquire the customer. If your target cost-per-acquisition is $8, that $8 has to come out of the same pool of money as your target profit — otherwise a price that looks like it carries a 40% margin can flip into an outright loss once the real acquisition cost is subtracted.

The corrected formula

Once you treat payment fees and ad cost as claims on the final price rather than afterthoughts, the formula becomes:

price = (COGS + ad CPA + fixed payment fee) / (1 − target margin% − payment fee%)

The percentage-based costs (margin and payment fee %) move into the denominator, because they scale with price. The flat-dollar costs (COGS, ad spend, fixed payment fee) stay in the numerator, because they don't change no matter what you charge.

A worked example

Take the same $12 COGS and 40% target margin, now with an $8 ad CPA target and a typical 2.9% + $0.30 payment fee:

ApproachFormulaRequired price
Naive markup$12 / (1 − 0.40)$20.00
Accounting for fees + ads($12 + $8 + $0.30) / (1 − 0.40 − 0.029)$35.55

That's not a rounding difference — it's nearly double. At $20, once you subtract COGS, the payment fee, and the $8 ad spend, you're actually left with negative $0.88 per sale — a loss, on a product you thought carried a healthy 40% margin. At $35.55, you actually clear your 40%, verified: $14.22 of profit on a $35.55 sale.

What this means in practice

  • Ad-driven businesses feel this the most. If most of your sales come from paid acquisition, your real required price is often meaningfully higher than a simple cost-plus calculation suggests.
  • Organic-heavy businesses can set the ad CPA input to zero and the formula collapses back toward the simpler version — this isn't a different model, just the general case.
  • This is also why margin targets and CPA targets should be set together, not independently — raising your ad budget without revisiting price is a common way margins quietly erode over a quarter.

If you'd rather not do this math by hand every time you're testing a price point, the Product Pricing & Target Profit Margin Matrix solves this exact formula for you. If you're specifically working through e-commerce unit economics with shipping and packaging costs layered in too, the E-Commerce Break-Even & Profit Margin Matrix extends this same logic across a full range of margin targets at once.