OneAction Calc

Mathematics & everyday money

Profit margin calculator

Find the gross margin and profit from cost and selling price.

Profit margin

Use a decimal number, no thousands separators.

Result
—

How it is calculated

(Selling price − cost) ÷ selling price × 100

Cost ≥ 0; selling price > 0. Gross margin excludes taxes and other expenses.

Saved calculations (0)

Only calculations you save are stored locally. Up to 30 entries.

Fast, free and private

Calculations run on your device. No account or input transmission. Use a decimal point or comma without thousands separators. Results are rounded for display; money amounts use the selected currency precision (two decimals without a selection).

When to use this calculator

Gross profit equals selling price minus cost. Gross margin expresses that profit as a percentage of selling price, not cost. Include the relevant direct costs consistently; this tool does not calculate net income, taxes or overhead separately.

Worked example

Cost is 80 and selling price is 100. Gross profit is 20. Divide 20 by 100 and multiply by 100: a gross margin of 20%.

Formulas and examples

Profit margin

(Selling price − cost) ÷ selling price × 100

Example: Cost: 80, Selling price: 100 → 20 %

Cost ≥ 0; selling price > 0. Gross margin excludes taxes and other expenses.

Evaluate the effect of a sale

An item costs 60 and sells for 100: gross profit is 40 and gross margin is 40%. At a promotional price of 80, gross profit is 20 and margin is 25%. Use the selling price as denominator and keep direct costs consistent.

Frequently asked questions

Can gross margin be negative?

Yes. Selling below cost produces a negative gross profit and margin, provided the selling price is positive.

Is a 25% markup a 25% margin?

No. A cost of 80 with a 25% markup gives a price of 100, which is a 20% margin.

Related calculators

Share calculator

The link below contains no calculation values. You can explicitly include your current numbers; recipients can read them. Never share confidential values.