Toolnova
Calculators

Profit Margin Calculator

Instantly calculate profit margin, markup and profit from cost and sale price — or work backwards from a target margin to find the right price.

  • 100% free
  • No signup
  • Private — in your browser
  • No watermark
Live tool · runs in your browser
Highlights

Why use Profit Margin Calculator?

  • Two modes: enter sale price to get margin, or enter margin to get sale price
  • Shows profit, profit margin % and markup % together
  • Visual bar chart splits revenue into cost and profit
  • Free, instant and fully private — runs in your browser
Overview

About Profit Margin Calculator

The Profit Margin Calculator works in two modes. In "Cost + Price" mode you enter the cost of goods and the sale price; the tool calculates profit (sale price minus cost), profit margin (profit divided by sale price, expressed as a percentage) and markup (profit divided by cost). In "Cost + Margin" mode you enter the cost and your desired profit margin percentage and the calculator derives the sale price you need to charge using the formula: Sale Price = Cost ÷ (1 − Margin ÷ 100).

Understanding the difference between margin and markup is critical in retail and e-commerce. A 50% markup on a $40 item gives a $60 sale price — but the profit margin on that sale is only 33.3%, not 50%. This free browser-based tool makes that distinction clear with a real-time visual breakdown. No data is ever uploaded; all maths runs privately on your device.

Step by step

How to use Profit Margin Calculator

  1. 1

    Choose a calculation mode

    Select "Cost + Price → Margin" to analyse an existing price, or "Cost + Margin → Price" to find the sale price needed for a target margin.

  2. 2

    Enter your numbers

    Type the cost price and either the sale price or your desired profit margin percentage. Pick a currency symbol for display purposes.

  3. 3

    Review profit, margin and markup

    The result cards show profit, profit margin and markup side by side. A proportional bar illustrates how much of each sale goes to cost versus profit.

FAQ

Frequently asked questions

What is the difference between profit margin and markup?

Profit margin is profit divided by the sale price. Markup is profit divided by the cost. For example, buying at $40 and selling at $60 gives a $20 profit. Markup = $20 ÷ $40 = 50%; Margin = $20 ÷ $60 = 33.3%. Same profit, different percentages.

How do I calculate the sale price from a desired margin?

Use the formula: Sale Price = Cost ÷ (1 − Margin ÷ 100). For a $40 cost and 40% desired margin: $40 ÷ (1 − 0.40) = $40 ÷ 0.60 = $66.67.

Why can't the margin be 100% or more?

A 100% margin would require an infinite sale price (the formula divides by zero). In practice, margins are always between 0% and 100% for profitable items.

Is gross margin the same as profit margin?

Gross margin typically refers to profit after deducting the direct cost of goods sold (COGS), before overheads. This calculator computes gross margin when you use the product cost as the cost input. Net margin would also subtract operating expenses and taxes.

Related calculators

See all calculators

Browse more free tools

Explore every category in our toolbox.