Back to all tools

Margin Calculator

Calculate gross margin, markup and profit from cost and revenue.

No files are stored on our servers
$

What the item costs you to produce or buy.

$

What you sell the item for.

Profit$50.00
Markup50.00%
Gross margin
profit ÷ revenue
33.33%

How it works

The Margin Calculator uses two simple formulas. Enter your cost (what you paid to make or buy the product) and your revenue (what you sell it for) — the calculator instantly returns profit, gross margin, and markup.

Profit
profit = revenue − cost
Gross margin
margin % = (profit ÷ revenue) × 100
Markup
markup % = (profit ÷ cost) × 100

Example: an item costs $100 and sells for $150. Profit is $50, gross margin is 33.33% (50 ÷ 150), and markup is 50% (50 ÷ 100). Margin and markup are related but not the same — margin measures profit against the selling price, markup measures it against the cost.

How to use

  1. 1

    Enter the cost — what the item costs you.

  2. 2

    Enter the revenue — what you sell it for.

  3. 3

    See profit, gross margin percentage and markup percentage update instantly.

Margin Calculator — Gross Margin, Markup & Profit

Free online margin calculator. Enter cost and revenue to instantly get profit, gross profit margin percentage, and markup percentage. No signup, works in your browser.

Skycally's Margin Calculator is a free tool for business owners, e-commerce sellers, freelancers and accountants who need to price products correctly. Enter what an item costs you and what you sell it for, and the calculator instantly returns three numbers: the raw profit in dollars, the gross profit margin as a percentage of revenue, and the markup as a percentage of cost. Results update as you type.

Margin and markup are the two ways to express the same profit relationship, and mixing them up is one of the most common pricing mistakes. Margin is profit divided by revenue — it tells you what percentage of every dollar of sales you keep. Markup is profit divided by cost — it tells you how much you added on top of what you paid. A 50% markup only translates to a 33.33% margin. The calculator shows both so you can price consistently across suppliers, marketplaces and quote sheets.

The tool runs entirely in your browser: no uploads, no signup, no data saved. Use it for Shopify or Amazon product pricing, wholesale-to-retail markup, service quotes, restaurant menu pricing, or a quick sanity check before sending an invoice.

Frequently Asked Questions

What is the difference between margin and markup?

Both measure profit but use a different base. Gross margin = profit ÷ revenue × 100 (how much of each sale is profit). Markup = profit ÷ cost × 100 (how much you added to your cost). Example: cost $100, sell $150. Margin = 33.33%, markup = 50%. Same profit, different percentages.

How do I calculate gross profit margin?

Gross profit margin = (revenue − cost) ÷ revenue × 100. If revenue is $200 and cost is $120, gross margin is (200 − 120) ÷ 200 × 100 = 40%.

What is a good profit margin?

It depends on the industry. Retail: 20–50% gross margin is common. Restaurants: 30–70% on food. Software / SaaS: often 70–90%. Wholesale and grocery: single-digit to low-double-digit. Compare against your own history and competitors in the same category.

Does this calculator include taxes or fees?

No. It calculates gross margin — revenue minus cost of goods, before shipping, marketplace fees, payment processing, taxes or overhead. Subtract those from revenue first if you want net margin.

You might also like

Other tools you might find useful.