Free ยท Instant ยท No sign-up

Gross Profit Margin Calculator

Calculate your gross profit margin instantly. Enter your cost and selling price to get gross profit, margin percentage and markup โ€” with an optional tax rate for net profit.

Margin tool

Gross Profit Margin Calculator

Enter cost and selling price to get gross profit, margin % and markup % instantly

$
$
๐Ÿ“‹ Optional: Include Tax Rate
%
๐Ÿ’ก Margin % is profit as a share of selling price. Results update instantly.

How to Calculate Gross Profit Margin

Gross profit margin tells you what percentage of every sale you keep after covering the direct cost of the product.

The gross profit margin calculator uses the standard accounting formula. First find gross profit, then express it as a percentage of revenue (selling price):

Gross Profit = Selling Price โˆ’ Cost (COGS)
Gross Profit Margin (%) = (Gross Profit รท Selling Price) ร— 100

Worked Example

A product costs $60 and sells for $100. Gross profit is $40. Gross profit margin is ($40 รท $100) ร— 100 = 40%. That means 40 cents of every dollar of revenue is gross profit, before operating expenses and tax.

CostSelling PriceGross ProfitMargin %
$60$100$4040.00%
$70$100$3030.00%
$50$120$7058.33%

Margin is always calculated on the selling price, never the cost. Calculating profit on cost gives you markup, which is a different (and larger) number โ€” see our margin vs markup guide.

What Is a Good Gross Profit Margin?

It varies by industry: software and consulting often exceed 70%, retail averages 20โ€“40%, manufacturing 15โ€“35%, and grocery as low as 10โ€“15%. Read the full breakdown in what is a good gross profit margin.

When to Use This Calculator

Use the gross profit margin calculator whenever you need to price a product, evaluate a supplier quote, compare product lines, or check whether a sale still leaves enough margin after a discount. For reverse calculations (you know the margin you want and need the price), use the advanced GP calculator, and to calculate from cost upward use the markup calculator.

Frequently Asked Questions

What is gross profit margin?

+

Gross profit margin is gross profit expressed as a percentage of revenue. It shows what share of each sale you keep after the direct cost of goods, before operating expenses, interest and tax.

How do you calculate gross profit margin?

+

Subtract cost from selling price to get gross profit, divide by selling price, then multiply by 100. For example, ($100 โˆ’ $60) รท $100 ร— 100 = 40%.

Is margin calculated on cost or selling price?

+

Always on the selling price. Profit calculated as a percentage of cost is called markup, which is a different and larger figure.

What is a good gross profit margin?

+

It depends on the industry. Software and services often exceed 60โ€“80%, retail is typically 20โ€“40%, manufacturing 15โ€“35%, and grocery 10โ€“15%.

Does this calculator include tax?

+

Yes, optionally. Add a tax rate and the calculator also shows tax amount and net profit after tax. Leave it blank for a pure gross profit calculation.