The authoritative source for both formulas is standard financial accounting, and the two are simple: markup measures the gap between price and cost as a percentage of cost, while margin measures the same dollar gap as a percentage of price. Markup = (Price − Cost) ÷ Cost. Margin = (Price − Cost) ÷ Price. Same dollars, different denominator — which is exactly why the same product can read as a big markup and a smaller margin at once.

If you searched for a markup vs margin formula source, you probably hit a wall of pages that state the two formulas and stop. This one names where the definitions come from, walks the conversion math, and then does the part almost every result skips: shows why confusing the two quietly bleeds profit out of a real store.

Where the formulas actually come from

There is no single "inventor" of markup and margin. Both come out of standard financial accounting, where gross profit is defined as revenue minus the cost of goods sold (COGS). Every reputable accounting source builds the two ratios on top of that same gross-profit figure — they only change the denominator.

That is the key to reading any markup vs margin formula authoritative source correctly. The numerator is identical in both formulas. It is the gross profit: the dollars left after you subtract what the item cost you from what you sold it for. The disagreement is only ever about what you divide that number by.

  • Markup % = (Price − Cost) ÷ Cost × 100 — profit as a share of cost.
  • Margin % = (Price − Cost) ÷ Price × 100 — profit as a share of price.

A reliable accounting source for margin vs markup states these the same way, sometimes writing the numerator as "gross profit" instead of "(Price − Cost)." Those are the same thing. If a page gives you a formula where the numerators differ between markup and margin, it is wrong.

A worked example you can check by hand

Say you sell a print-on-demand hoodie for $40. Your blank garment, printing, and base fulfillment cost is $16. Your gross profit on that order is $40 − $16 = $24.

Now apply both formulas to the exact same $24:

  • Markup = $24 ÷ $16 = 1.5 → 150%. You charged 150% over what the hoodie cost you.
  • Margin = $24 ÷ $40 = 0.60 → 60%. You keep 60 cents of every sales dollar.

Same product, same $24 of profit, two very different-looking percentages. The markup is always the larger number because cost is always smaller than price. That single sentence resolves most of the confusion people carry into pricing.

Converting between markup and margin

Because both formulas describe the same gap, you can convert either into the other without knowing the actual prices. This is where a gross margin vs markup formula source earns its keep — the conversion identities are exact, not approximations:

  • Markup → Margin: Margin = Markup ÷ (1 + Markup)
  • Margin → Markup: Markup = Margin ÷ (1 − Margin)

Check them against the hoodie. A 150% markup: 1.5 ÷ (1 + 1.5) = 1.5 ÷ 2.5 = 0.60, a 60% margin. Run it backward: 0.60 ÷ (1 − 0.60) = 0.60 ÷ 0.40 = 1.5, a 150% markup. The two describe one product from two angles.

Here is the conversion table most accounting sources publish, so you can eyeball the gap between the two at common price points:

Markup Margin
15% 13%
20% 16.7%
25% 20%
33.3% 25%
50% 33.3%
100% 50%
150% 60%

The values above match the conversion chart published by the accounting-software firm Patriot Software, a commonly cited accounting source for the markup-to-margin relationship. Notice the gap widens as the numbers climb: at low percentages markup and margin are close, but by the time you reach a 100% markup you are only at a 50% margin.

The mistake that costs real money

Now the part the top results gloss over. Mixing up markup and margin is not a rounding error — it is a pricing error that shows up in your bank account.

Suppose you want a 50% margin on that hoodie but you build your price by adding a 50% markup to your $16 cost. You set the price at $24. Run the margin formula on that price: ($24 − $16) ÷ $24 = 33.3%. You aimed for a 50% margin and landed at 33.3% — you underpriced by trying to hit a margin with a markup number. That gap is exactly why Patriot Software and other accounting sources warn that confusing the two is a classic way to leave money on the table.

On one hoodie that is a few dollars. Across a thousand orders a month it is a serious hole. And it compounds, because margin is the number that decides whether your ads are even profitable.

Why margin — not markup — drives your ad economics

For an ecommerce or print-on-demand store, margin is the more useful of the two because it plugs directly into your paid-media math. The single most important identity in paid acquisition is your break-even return on ad spend, and it is built on margin, not markup:

  • Break-even ROAS = 1 ÷ margin ratio

If your contribution margin after shipping, payment fees, and fulfillment is 40%, your break-even ROAS is 1 ÷ 0.40 = 2.5. Every ad dollar has to return at least $2.50 in revenue just to avoid a loss. Try to run that same identity off a markup number and you will target the wrong ROAS and scale a campaign that is quietly unprofitable.

This is the through-line that ties markup and margin to the rest of your metrics. If you want the full map of how margin, ROAS, CAC, and contribution margin connect, our ecommerce metrics and formulas guide lays out every definition against one running example store. Margin is the thread that runs through all of them.

Markup, margin, and per-order profit

There is a catch that even the margin formula hides. Gross margin only subtracts COGS. It does not subtract the shipping label, the payment processor's cut, the pick-and-pack labor, or the ad spend that brought the order in. Your "60% margin" hoodie can drop to a much thinner slice once those variable costs come out.

Say the same $40 order carries $5 shipping, $1.60 in payment processing, and $1.40 of pick/pack labor. That is $8 of variable cost on top of the $16 COGS. Your contribution margin before ads is $40 − $24 = $16, a 40% margin — not 60%. Add $10 of allocated ad spend and you are down to $6, a 15% margin, on an order that looked like it kept 60 cents on the dollar.

That is the difference between a headline margin and true per-order profit. Getting there means knowing your real acquisition cost, which is a metric worth improving on its own — see our guide on how to improve CAC. It also means valuing repeat buyers correctly, because a second order carries no acquisition cost; our walkthrough on how to calculate repeat customer rate shows why that lever moves margin without touching price.

From formula to live numbers

Knowing the markup vs margin formula source is step one. Applying it to your actual store — where COGS, fees, shipping, and ad spend all move independently — is where it gets hard. A spreadsheet with a static margin assumption drifts out of date the moment a supplier price or a shipping rate changes.

This is the gap PodVector is built to close. PodVector connects your Shopify, Meta Ads, Google Ads, Printify, and Printful accounts and computes true per-order profit — COGS, fees, shipping, and ad spend netted out on every order, not a headline margin. Victor, its AI operator, reads that live data, surfaces where your real margin is thinner than your markup suggests, and proposes Shopify-side moves you approve before anything changes. Victor is not a dashboard, and he does not touch your ad account — he reads the ad data and hands you the decision. If you want your margins computed from live numbers instead of a static formula, you can start with PodVector here.

Before you spend on traffic, it is worth knowing what each visit is actually worth — our revenue per visitor formula breaks that down and ties it straight back to the margin math above.

FAQs

What is the authoritative source for the markup and margin formulas?

Standard financial accounting is the source. Both formulas are built on gross profit — revenue minus cost of goods sold — and every credible accounting reference states markup as that profit over cost and margin as that same profit over price. There is no proprietary or single-author definition; it is a settled part of accounting.

Is markup or margin the "right" number to use?

Both are correct; they answer different questions. Markup tells you how much you charged above cost, which is handy when you price up from a supplier invoice. Margin tells you what share of each sales dollar you keep, which is the number that feeds profit, break-even, and ad-spend math. For ecommerce decisions, margin is usually the one you want.

Why is markup always a bigger percentage than margin?

Because they share the same numerator but divide by different things. Markup divides gross profit by cost; margin divides it by price. Price is always larger than cost on a profitable sale, and dividing by a larger number gives a smaller percentage — so margin is always the lower figure for the same product.

How do I convert a markup into a margin?

Use Margin = Markup ÷ (1 + Markup). A 50% markup becomes 0.50 ÷ 1.50 = 33.3% margin. To go the other way, use Markup = Margin ÷ (1 − Margin). These are exact conversions, so you never need the actual prices to switch between the two.

Does a good margin mean I'm actually profitable?

Not necessarily. Gross margin only subtracts the product cost. It ignores shipping, payment fees, fulfillment labor, and ad spend. Once those come out, your contribution margin and true per-order profit can be far below the headline margin — which is why netting out every variable cost per order matters more than the sticker margin.

Where does markup vs margin matter most in ecommerce?

In pricing and in paid media. Setting a price off the wrong metric underprices you on every unit. And your break-even ROAS is 1 divided by your margin ratio, so an incorrect margin means an incorrect ad target — you can scale a campaign that looks fine on markup while it loses money on margin.