Margin Calculator

Enter your cost and selling price. Get gross margin %, markup %, and profit per sale instantly — or switch to Target margin to reverse-solve the price you need. The clearest margin calculator on the web, with a side-by-side margin vs markup table.

Quick answer

Gross margin = (selling price − cost) ÷ selling price. Example: a $30 item that costs you $20 has a $10 profit and a 33.3% gross margin (which is a 50% markup on cost).

Your numbers

Edit any field — results update as you type.

$
$
Free: Seller Fee Cheat Sheet

Every fee on Etsy, Shopify, Amazon Handmade and at markets, on one page. We'll email it to you too.

Gross margin
33.3%
$10.00 profit on every sale.
Profit per sale
$10.00
Markup
50.0%
Quick check: margin and markup look similar but mean different things. A 50% markup is only a 33% margin. If your margin is unexpectedly low, check whether you've been thinking in markup instead.

Want the full picture? The Real Profit Pricing Workbook walks you through your time, every fee and each sales channel, step by step.

See the workbook: $19 launch price until December 31, 2026 (then $27) →

30-day money-back guarantee. If it's not for you, email me within 30 days for a full refund, no questions asked. · First edition in English

Share or embed this calculator
Free for any site — includes a small credit link back to us.
The Real Profit Pricing Workbook cover
That's your price. Now know your real profit on every sale.
  • Your time, fees and shipping counted in
  • A price for every channel you sell on
  • Fillable PDF + bonus Excel calculator
Launch priceFirst edition in English
$19$27
See what's inside

Instant download · 30-day money-back guarantee

How to calculate margin

Subtract cost from selling price to get profit. Divide profit by selling price. Multiply by 100 for a percentage. ($30 − $20) ÷ $30 × 100 = 33.3% gross margin.

To work the other way — from a target gross margin to a price — divide your cost by (1 − margin ÷ 100). A $20 cost at a 40% target margin needs a $33.33 price. That's what the Target margin tab does.

Margin vs markup, side by side

MarkupMargin$20 cost → price
20%16.7%$24.00
25%20%$25.00
50%33.3%$30.00
75%42.9%$35.00
100%50%$40.00
150%60%$50.00
200%66.7%$60.00

Frequently asked

Gross margin is profit as a percentage of selling price. Formula: (price − cost) ÷ price. A $30 product that costs you $20 has a 33.3% gross margin.

Enter what the item costs you and what you sell it for. The gross margin calculator returns margin %, markup %, and profit per sale. Switch to the Target margin tab to work backwards from the margin you want to the price you should charge.

Margin is profit ÷ price. Markup is profit ÷ cost. The same $20 → $30 product has a 33% margin but a 50% markup. Confusing the two is the most common pricing mistake.

Retail products: 20–40% gross margin. Restaurants: 60–70% on food. Software & digital: 70–90%. Service businesses: 30–60%. Handmade and luxury goods often run 50%+.

Three levers: raise prices, lower the cost of goods, or shift the mix toward higher-margin items. Raising price by 10% on a 30% margin lifts profit per sale by ~33%.

Related calculators

Methodology
Formula

margin = (price − cost) ÷ price

Assumptions
  • Cost is fully loaded (materials, labor, overhead, packaging).
  • Price excludes sales tax and platform fees.
  • Margin is gross — operating expenses are not subtracted.

Last reviewed: 2026-09-18

Last reviewed: 2026-09-18