Free calculator

Profit Margin Calculator

Enter a price and what the item cost you. Get the profit, margin, markup, and the margin left after payment fees.

Margin from price and cost

What one unit cost you to buy or make: the cost of goods.

2.9% + $0.30 is a common US card rate at the time of writing. Use your own processor’s rate, or set both to 0 to see the margin before fees.

Results

Gross profit$24.00
Gross margin60%
Markup150%
Payment fee$1.46
Profit after the fee$22.54
Margin after the fee56.4%

Price for a target margin

Work backwards from the margin you want to keep.

Charge at least$43.94

Markup to margin

The same profit, measured two ways.

Margin50%
Common margins and the markup each one needs
MarginMarkup
10%11.1%
20%25%
25%33.3%
30%42.9%
40%66.7%
50%100%
60%150%
70%233.3%
75%300%
80%400%

How profit margin is calculated

Profit margin = (selling price − cost) ÷ selling price × 100. An item that sells for $40 and cost you $16 makes $24 of profit, and $24 is 60% of $40, so the margin is 60%. Those are the example figures in the calculator above, not anyone’s real store.

Markup = (selling price − cost) ÷ cost × 100. The same $24 is 150% of the $16 cost, so the markup is 150%. Margin and markup describe the same profit. Margin compares it to the price, markup compares it to the cost.

Margin vs markup: the mistake that underprices

Mixing the two up is the most common pricing error. If you want a 50% margin and add 50% to your cost, you get a 33.3% margin: cost $10, price $15, profit $5, and $5 is a third of $15. A 50% margin needs a 100% markup. The table above lists the markup for each common margin.

Margin can never reach 100%, because that would mean the item cost nothing. Markup has no ceiling. That is why the calculator says no price works once a target margin, plus the fee, reaches 100%.

What belongs in the cost

For gross margin, the cost is the cost of goods: what you paid for the unit, or what it cost to make. Leave sales tax out of the selling price. You collect tax for the government, so it was never part of your revenue.

Gross margin is not the whole picture. Payment fees come off every sale, which is why the calculator shows the margin after the fee too. Shipping, packaging and running costs come off after that. A product with a healthy gross margin can still lose money on a small order. Order profit analysis works through one of those, with a break-even order size.

Products with several sizes

A 50-pack and a 100-pack of the same product usually have different costs and different prices, so they have different margins. Work out each size on its own. An average across sizes hides the one that earns least. If you sell on WooCommerce, cost of goods per variation covers where each size’s cost should live, and why last quarter’s margins move when a supplier changes a price.

Doing this for every order

A calculator answers one product at a time. TeamBooks does the cost side for every order in your store: it records the cost of each size sold and shows profit per order and per product. Payment fees are set per payment method and taken off your balances. See COGS tracking software for what it tracks, WooCommerce accounting for how orders arrive, and plans for pricing.