Margin and Markup Calculator

Find margin and markup from an item's cost and selling price, with both formulas shown.

Inputs stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Calculate margin and markup controls

Showing an example. Edit to see your own.

Processed in your browser. Your inputs stay on this device.

How to use Margin and Markup Calculator

  1. Enter what one item costs you and the price you sell it for.
  2. The difference, margin and markup update together as you change the figures.
  3. Check the denominators: margin uses the selling price, while markup uses the cost.

Example: Margin and Markup Calculator

An item costs 80 and sells for 100. Compare the two percentage measures.

You add
Cost per item 80; selling price per item 100.
You get
The difference is a gain of 20.00. Margin is 20.00% of the selling price; markup is 25.00% of the cost.

Options

Cost per item
Use the same per-item basis as the selling price. Include any direct costs you want the difference to reflect.
Selling price per item
The price before any tax or fees that this calculator does not include. It must be above zero because margin divides by this price.

Supported inputs and limits

Both entered amounts must be greater than zero and no more than 1,000,000,000,000. A price below cost produces a negative margin and markup. The difference is based only on the two amounts entered; it does not add tax, shipping, overhead, payment fees or a sales forecast. Results are rounded to two decimal places, and no currency conversion is performed. This is arithmetic help, not pricing or financial advice.

Where your input is processed

This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

The denominator changes the percentage

Checked 2026-09-28. Subtract cost from selling price once. Divide that difference by selling price for margin, or by cost for markup, then multiply by 100. The University of Maine Cooperative Extension explains this distinction with retail examples. This page treats the two entered numbers as unit amounts and does not estimate operating profit.

University of Maine Cooperative Extension, Basic Pricing Strategies for Small Businesses

Questions about Margin and Markup Calculator

Why are margin and markup different percentages?

They use the same difference but divide it by different amounts. Margin divides by selling price; markup divides by cost. With cost 80 and price 100, they are 20% and 25%.

What happens when I sell below cost?

The difference and both percentages are negative. For example, cost 120 and price 100 gives a 20.00 loss, a -20.00% margin and a -16.67% markup.

Does this show my business's net profit?

No. It compares only the cost and selling price you enter for one item. Add all relevant costs separately before treating the difference as profit.

Project manager: Tony Hines · Content updated 29 September 2026 · Report a problem