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.

This calculator was actually one of 39 tools missing its ad placement until a recent site-wide audit. Read the full story of how we found it.

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.

A quick way to keep the two straight: if you're working backward from a desired margin to figure out what price to charge, remember that markup will always need to be a larger percentage than the margin you're targeting — the formulas aren't interchangeable, and using one where the other belongs is a common way businesses accidentally underprice their products.

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.

How do I price a product to hit a target margin?

Divide your cost by (1 − target margin as a decimal). For example, to hit a 40% margin on a $60 cost item: $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100 selling price.

Why is markup always higher than margin for the same profit?

Because markup divides profit by the smaller number (cost), while margin divides it by the larger number (revenue, which already includes the profit). The two will only be equal at 0% profit.

Should I use margin or markup for pricing decisions?

Margin is generally more useful for pricing strategy since it directly tells you what share of revenue is profit — useful for comparing profitability across products. Markup is more common in purchasing and wholesale contexts, where you're calculating from a known cost upward.

Is my pricing data stored anywhere?

No. All calculations happen locally in your browser. Nothing you enter is saved, logged, or sent to a server.

You might also like

Other tools you might find useful.