Free tool · Plain Method

Price with a clear margin.

Calculate gross profit, margin and markup from one cost and selling price. Set a target margin to see the selling price it implies; your numbers stay in this browser.

No accountNo spreadsheet uploadNo marketplace connection
01 / ONE PRICE CHECK

Enter cost and price.

The example is prefilled. Change any value to see the result update.

Amounts are calculated locally and are not included in analytics.

03 / HOW IT WORKS

Margin and markup use different bases.

01

Gross profit

Selling price − cost. A negative result means cost exceeds the selling price.

02

Margin

Gross profit ÷ selling price × 100. It is undefined when selling price is zero.

03

Markup

Gross profit ÷ cost × 100. It is undefined when cost is zero.

This is a one-off gross margin estimate. It excludes overhead, taxes, discounts, refunds, labor allocation, payment or marketplace fees and currency conversion. It is not accounting, tax or legal advice.

EXAMPLE · SYNTHETIC VALUES

$60 cost. $100 price.

An illustrative example, not customer data.

Cost
$60.00
Selling price
$100.00
Gross profit
$40.00
Margin
40%
Markup
66.67%
Price at 50% target margin
$120.00
FAQ

Questions before you use it.

How do I calculate gross margin?
Subtract cost from selling price to get gross profit, then divide gross profit by selling price and multiply by 100. A zero selling price has no defined margin.
What is the difference between margin and markup?
Margin divides gross profit by selling price. Markup divides gross profit by cost. They use different denominators, so the percentages differ for the same sale.
How do I set a selling price for a target margin?
Divide cost by one minus the target margin expressed as a decimal. The target must be below 100%; at 100% or more, no finite selling price can produce that margin.
What happens when cost or selling price is zero?
Zero cost produces a dash for markup because the denominator is zero. Zero selling price produces a dash for margin. Gross profit is still calculated; negative gross profit means cost is greater than selling price.
Are my numbers uploaded or saved?
The calculation runs in this browser. Usage analytics records only count a calculator interaction or product link; they do not include the amounts you enter.