FREE TOOL

Gross profit and margin calculator

Gross profit is price minus cost, and gross margin is that profit divided by the price. An item that costs $65 and sells for $100 makes $35 of gross profit, a 35% margin. Enter any two of cost, price and margin to get the rest, the matching markup, and the totals for a quantity. Add inbound freight per unit to work on landed cost, and pick your currency, Canadian dollars included.

Updated October 12, 2026

Work out
Your numbers
Per unit, or cost of goods sold
Optional: inbound freight, duty or handling
Per unit, or revenue
Optional: for totals
Gross margin: 35%
Gross margin35%

($100.00 - $65.00) / $100.00 = 35%

Gross profit$35.00Per unit
Margin35%Profit / price
Markup53.85%Profit / cost
Price$100.00As entered
Thinking of a discount?

Enter a discount to see how many more units you would have to sell to earn the same gross profit dollars.

Price a whole cost list
One item per line: the item, then its cost. Copy two columns straight from Excel or Google Sheets, or type with commas. The last number on each line is read as the cost.
= 53.8% markup
ItemCostPriceProfit
HB-1220 Hex bolt 1/2 x 2$0.42$0.65$0.23
HN-0500 Hex nut 1/2$0.08$0.12$0.04
BV-0750 Ball valve 3/4 in$11.60$17.85$6.25

Prices are rounded to the cent.

Runs in your browser; nothing you type is uploaded.

The formulas

You wantFormula
Gross profitPrice - cost
Gross margin(Price - cost) / price
Markup(Price - cost) / cost
Price for a target marginCost / (1 - margin)
Most you can pay for a target marginPrice x (1 - margin)
Landed costUnit cost + inbound freight per unit

Margin is profit as a share of the selling price; markup is profit as a share of cost. The University of Maine Extension calls them markup on price and markup on cost.

Two worked examples from extension bulletins. University of Maine: an item bought for $1.00 and sold for $1.50 has a 50% markup and a 33.3% margin; the 50 cents of profit is the same either way. Mississippi State: to make a 40% gross margin on a product that costs $2.25, the price is $2.25 / (1 - 0.40) = $3.75.

Margin and markup are not the same number

The most common pricing mistake is adding a margin percentage to cost. A 40% markup on a $1.00 item gives $1.40, which is only a 28.6% margin. To earn 40% margin you need $1.67 (the bulletin rounds down to $1.66). The table converts one to the other.

Gross marginEquals markup ofPrice for $1 of cost
10%11.1%$1.1111
15%17.6%$1.1765
20%25%$1.25
25%33.3%$1.3333
30%42.9%$1.4286
33.33%50%$1.50
35%53.8%$1.5385
40%66.7%$1.6667
45%81.8%$1.8182
50%100%$2.00
60%150%$2.50

Markup = margin / (1 - margin).

What a discount really costs

A price cut comes straight out of gross profit. At a 30% margin, 10% off leaves 20 cents of profit on each dollar of the old price instead of 30, so you need half again as many sales to make the same gross profit dollars. The table shows how much more volume each discount needs.

DiscountAt 20% marginAt 30% marginAt 40% marginAt 50% margin
5% off+33%+20%+14%+11%
10% off+100%+50%+33%+25%
15% off+300%+100%+60%+43%
20% offNo volume is enough+200%+100%+67%

Extra units needed to keep the same gross profit dollars: margin / (margin - discount) - 1.

Gross margin across a whole order

When an order has several lines, add up the dollars first: total gross profit divided by total revenue. Averaging the line percentages overweights the small lines. The quote template shows the blended margin of a quote as you price it.

Gross profit is not net profit

Gross profit pays for everything else: sales and warehouse staff, rent, freight you do not bill, and finally net profit. The University of Maine bulletin’s example builds a 40% margin from 30% for selling and operating costs plus 10% net profit. If your operating costs run 30% of sales, any order below a 30% gross margin loses money even though it shows a gross profit.

WHERE MORSA FITS

Quotes are only worth the ones that turn into orders.

Morsa writes quotes from your price book and your target margins, sends them, and follows up until the customer orders or says no. It works in email, Teams, WhatsApp or whatever you already run on, and it reads prices and stock from your ERP.

Machines, people, and vendors, finally in one. We start with yours.

For queries, feedback or suggestions

© 2026 Lunar Inc. All Rights Reserved.

Machines, people, and vendors, finally in one. We start with yours.

For queries, feedback or suggestions

© 2026 Lunar Inc. All Rights Reserved.

Machines, people, and vendors, finally in one. We start with yours.

For queries, feedback or suggestions

© 2026 Lunar Inc. All Rights Reserved.