๐Ÿ’ฐ Finance calculator

Margin Calculator

Calculate profit margin, markup percentage, gross profit, required selling price, or cost from any two known values โ€” five modes in one tool. See a visual revenue-cost-profit breakdown, a margin health rating, and a plain-English explanation of every result.

Choose a margin mode

Pick what you want to find. Enter the two values you already know and click Calculate.

Know cost and selling price. Find your gross profit margin as a percentage of revenue.

๐Ÿ’ฒ
Total cost of the item or service
๐Ÿท๏ธ
Price charged to the customer

Know cost and selling price. Find your markup โ€” profit as a percentage of cost.

๐Ÿ’ฒ
Total cost of the item or service
๐Ÿท๏ธ
Price charged to the customer

Know cost and target margin. Find the selling price you need to hit that margin.

๐Ÿ’ฒ
Total cost of the item or service
๐ŸŽฏ
The gross margin % you want to achieve

Know cost and selling price. Find your gross profit in dollar terms.

๐Ÿ’ฒ
Total cost of the item or service
๐Ÿท๏ธ
Price charged to the customer

Know selling price and target margin. Work backwards to find the maximum allowable cost.

๐Ÿท๏ธ
The price you will charge customers
๐ŸŽฏ
The gross margin % you need

Margin vs markup

Margin = Profit รท Revenue ร— 100
Markup = Profit รท Cost ร— 100
Same profit, different denominators โ€” margin is always lower than markup for the same transaction.

Five modes at a glance

Know cost + price โ†’ find margin or markup or profit
Know cost + target margin โ†’ find required price
Know price + target margin โ†’ find max cost

Tip: "Find Cost" mode is useful for procurement and supplier negotiations โ€” enter your selling price and required margin to instantly know the maximum you can pay for the product while still hitting your target.
This calculator computes gross profit margin only โ€” it does not account for operating expenses, taxes, or overhead. Gross margin โ‰  net profit margin. Use gross margin as a starting point, then subtract operating costs for a true picture of profitability.

Margin vs markup โ€” the key difference

Margin and markup both measure profitability but use different bases โ€” and they are frequently confused in business pricing conversations.

Profit margin = (Revenue โˆ’ Cost) รท Revenue ร— 100
Profit as a % of what you charge the customer
Markup = (Revenue โˆ’ Cost) รท Cost ร— 100
Profit as a % of what you paid for the item

For the same transaction (cost $60, price $100), margin is 40% while markup is 66.7%. Margin is always the lower number. If someone says "we want 40% margin" and you price to 40% markup, you will always undercharge โ€” this is one of the most common and costly pricing mistakes in small business.

Cost Price Profit Margin Markup
$60$100$4040.0%66.7%
$75$100$2525.0%33.3%
$50$100$5050.0%100.0%
$80$100$2020.0%25.0%

All five formulas

Gross profit = Revenue โˆ’ Cost
Profit margin = Profit รท Revenue ร— 100
Markup = Profit รท Cost ร— 100
Required selling price = Cost รท (1 โˆ’ Margin รท 100)
Maximum cost = Revenue ร— (1 โˆ’ Margin รท 100)

Margin benchmarks by industry

Grocery / supermarket: 2โ€“5% net, 20โ€“30% gross
Restaurant / food service: 3โ€“9% net, 60โ€“70% gross (on food cost)
Retail apparel: 4โ€“13% net, 40โ€“60% gross
Software / SaaS: 15โ€“30% net, 60โ€“80% gross
Consulting / services: 20โ€“40% net, 50โ€“70% gross
E-commerce (non-food): 5โ€“20% net, 30โ€“50% gross
Manufacturing: 5โ€“10% net, 20โ€“40% gross

Gross margin and net margin differ significantly because operating expenses (rent, salaries, marketing, logistics) sit between them. A 60% gross margin can easily become a 10% net margin after operating costs.

Frequently asked questions

What is the difference between margin and markup?

Margin divides profit by revenue (selling price). Markup divides profit by cost. For cost $60 and price $100: margin = $40 รท $100 = 40%, markup = $40 รท $60 = 66.7%. Margin is always lower than markup for the same transaction. Always clarify which metric someone means in a pricing conversation.

How do I calculate the selling price I need for a target margin?

Use the formula: Selling price = Cost รท (1 โˆ’ target margin รท 100). For a $60 cost and 40% target margin: $60 รท (1 โˆ’ 0.40) = $60 รท 0.60 = $100. Use the Selling Price mode in this calculator โ€” enter cost and target margin.

Does a discount reduce my margin?

Yes โ€” discounting revenue while cost stays fixed reduces your margin. A 10% discount on a $100 item (cost $60) drops revenue to $90. New margin = ($90 โˆ’ $60) รท $90 = 33.3% โ€” down from 40%. At larger discounts, margin compresses rapidly. Use the Discount Calculator alongside this tool.

Is gross margin the same as net profit margin?

No. Gross margin = (Revenue โˆ’ Cost of Goods Sold) รท Revenue. Net margin = (Revenue โˆ’ All expenses including operating costs, tax) รท Revenue. This calculator computes gross margin only. Net margin requires full P&L data.

What is a good profit margin?

It depends heavily on industry. Grocery operates on 2โ€“5% net margin; software on 15โ€“30%. For gross margin, most product businesses aim for 40โ€“60% to cover operating costs and still generate net profit. The best benchmark is your industry's median โ€” not a universal number.

Related finance calculators

These tools pair naturally with margin analysis.

Disclaimer

This calculator computes gross profit margin and markup only. It does not account for operating expenses, SG&A, depreciation, interest, or taxes. Gross margin is not the same as net profit margin. Use these figures as a starting point for pricing decisions โ€” consult an accountant for full profitability analysis.