Markup Calculator: Price From Cost, Markup vs Margin Explained

Markup Calculator: Price From Cost, Markup vs Margin Explained

ClearRanked banner for the markup calculator with the headline 'Markup Calculator' beside a flat illustration of a price tag with a dollar sign.

This markup calculator gives you a selling price, the profit per unit, and both the markup and the margin, side by side. Choose a mode: price from cost plus a markup %, price from cost plus a target margin %, or enter a cost and a price you already charge to see what they work out to. Use cost per unit, before sales tax.

The side-by-side view is the useful bit. Most pricing mistakes in small businesses come from someone saying “40%” without saying 40% of what.

Markup Calculator

Markup % in mode 1, margin % in mode 2
Used with "Cost + selling price"
Selling price–
Gross profit–
Markup–
Gross margin–

Estimate only, not tax, legal or financial advice. Results are rounded for display.

How do you calculate markup?

Take profit (price minus cost) and divide it by cost. Times 100, that's your markup. Say a bag of coffee costs you $60 and sells for $90: $30 profit, $30 ÷ $60, so 50%. Going the other way, from cost to price? Multiply cost by 1 plus the markup written as a decimal.

How to calculate selling price using markup percentage

C is the cost of one unit (what you pay to buy or make it), P is the selling price before tax, M is the markup percentage and G is the margin percentage. Margin has to stay under 100%; markup has no ceiling. A price three times cost is a 200% markup and a 66.67% margin.

Markup vs margin: what's the difference?

Both use the same profit. Markup divides it by cost; margin divides it by the selling price. Because price is bigger than cost on any profitable sale, markup is always the higher number. A 50% markup equals a 33.33% margin, and a 25% margin needs a 33.33% markup. Mixing them up means underpricing.

Shopify's guide puts it neatly: markup is the number for setting prices, margin is the number for judging profitability. Your accountant will talk margin, because that's what the P&L shows. Your supplier quote sheet probably talks markup.

To convert, use decimals. Margin = markup ÷ (1 + markup). Markup = margin ÷ (1 − margin). So 0.5 ÷ 1.5 = 0.333, and 0.25 ÷ 0.75 = 0.333.

Worked examples

Three examples, one per mode. Plug in a candle maker's cost and markup, a reseller's 25% margin target, or a cafe's existing price, and the calculator returns exactly these numbers. The costs are made up (not unrealistic though) and every price is before sales tax.

Example 1: price from a 40% markup

A candle gift set costs its maker $50 to produce (wax, jars, packaging, labor). She wants a 40% markup.

If her bookkeeper's target is "40% margin," this price falls well short. That's the trap.

Example 2: price to a 25% margin

A parts reseller buys a component for $75 and needs a 25% gross margin to cover overhead.

Adding 25% to cost would have given $93.75, a margin of only 20%.

Example 3: check an existing price

A cafe pays $60 for a case of coffee it sells for $90 in bags.

What is a good markup for a small business?

There isn't one right number. It depends on your industry, how much overhead each sale carries, and what customers will pay. Work backward instead: decide the gross margin you need to cover rent, payroll and profit, then convert it into a markup with the calculator. Then check competitor prices.

Two things a basic markup doesn't cover. First, overhead: a markup on direct cost still has to pay for rent, software and your time before any of it is profit. Second, payment fees and discounts, which come out of the price, not the cost. If you discount 10% off a 40% markup, the real markup drops to 26%.

If labor is a big chunk of cost, include it. Use the overtime calculator to cost overtime hours properly before you quote a rush job.

How do you calculate markup in Excel?

Put cost in A2 and price in B2. Markup % is =(B2-A2)/A2, formatted as a percentage. Margin % is =(B2-A2)/B2. To price from a markup in C2, use =A2*(1+C2). To price from a target margin, =A2/(1-C2). Copy the formulas down your product list to check every item at once.

A spreadsheet is fine for a short catalog. Once you're pricing hundreds of SKUs, or you're juggling quotes across a team, it's usually cleaner to move that work into proper tooling. Our project management software comparison covers tools that handle job costing and quoting for service businesses.

Related calculators

The other four calculators on ClearRanked cover the payroll side of running a small business. The tax and bonus calculator shows what comes out of a bonus check, the PTO calculator handles leave accrual, and the severance pay calculator estimates a package. The calculators hub lists all five.

FAQ

I pulled these five from the People Also Ask box Google shows for "markup calculator," the questions real people type in when they get stuck on pricing. Short answers. If you want the full working, scroll back up to the examples.

What is 40% markup on $100?

$140. Multiply $100 by 1.40. Your profit is $40, which works out to a 28.57% margin on the $140 price.

Is 30% markup the same as 30% margin?

Nope, and mixing them up is how prices end up too low. Mark a $100 cost up 30% and you charge $130, a 23.08% margin. Want a true 30% margin on that $100? You'd need $142.86, a 42.86% markup.

How do I add a 20% markup?

Multiply the cost by 1.20. A $45 item becomes $54. In a spreadsheet that's =A2*1.2, with cost in A2.

Is 50% margin the same as 100% markup?

Yes. Both describe charging twice what something costs. A $20 cost sold at $40 is a 100% markup and a 50% margin.

Should I price using markup or margin?

Set the target as a margin, because that's how profit shows up in your books. Then use the markup that matches it to set prices from cost. The calculator above shows both at once.

Sources (checked live October 19, 2026)