Margin Calculator

Calculate profit margin, markup percentage, and selling price. Understand the difference between margin and markup.

Calculate

$
$

Choose a calculation type, enter your numbers, and click Calculate to see margin, markup, and formulas.

Complete User Guide

What is the Margin Calculator?

This calculator helps you work with profit margin and markup. You can find margin and markup from cost and selling price, find the selling price from cost and a desired margin or markup, find cost from price and margin, or convert between margin and markup. Margin is profit as a percentage of selling price; markup is profit as a percentage of cost. The tool includes a comparison table and charts.

Key Concepts

Margin

Profit as a percentage of selling price. Margin = (Profit / Price) × 100. Used when you want to know what share of revenue is profit.

Markup

Profit as a percentage of cost. Markup = (Profit / Cost) × 100. Common in retail: e.g. 50% markup means you add half the cost to set the price.

Difference

For the same deal, margin is always a smaller percentage than markup. Example: 50% margin = 100% markup (price is double the cost).

How to Use

  1. Choose what you want to calculate: margin from cost/price, price from cost/margin, price from cost/markup, cost from price/margin, or margin ↔ markup conversion.
  2. Enter the known values in the form (cost, price, margin %, or markup % as applicable).
  3. Click Calculate to see the result, formulas, comparison table, and charts.
  4. Use the comparison table to see equivalent markup for common margin percentages.

Understanding the Charts

Cost vs Profit: Doughnut chart showing how selling price splits into cost and profit (shown when your calculation has cost and price).

Margin vs Markup: Bar chart showing the equivalent markup percentage for each margin percentage (10%%, 15%%, … 50%%).

Important Notes

  • Margin must be less than 100%. Selling price cannot be zero when calculating margin from cost and price.
  • Price = Cost / (1 - Margin%); Cost = Price × (1 - Margin%).
  • Many businesses target margin; retail often talks in markup. This calculator does both.

📤 Share This Tool