Skip to content

Profit Margin Calculator

Profit margin shows how much of every unit of revenue you keep after costs. Enter your revenue and costs to see the margin percentage and the profit amount, then use the explanation below to understand which margin type fits your situation.

Last reviewed: 2026-07-01

Profit Margin Calculator inputs

Fill in the fields below, then select Calculate. Nothing is submitted automatically.

Total sales value before costs are deducted.

Cost of goods for gross margin, or total costs for net margin — use one definition consistently.

Used to calculate profit per unit. Leave empty to skip.

Changing the currency changes formatting only. It does not convert values between currencies.

Calculations run locally in your browser. Your figures are not sent to a server or stored by us.

Results

Enter your figures above and select Calculate. Results appear here with clear labels — never colour alone.

What is profit margin?

Profit margin expresses profit as a percentage of revenue. It answers a single question: out of every unit of money a customer pays you, how much do you keep after costs? Because it is a percentage, it lets you compare a small product line against a large one, or this quarter against last, without the comparison being distorted by size.

There are three margins in common use, and they differ only in which costs are subtracted. Gross margin subtracts the direct cost of what you sold. Operating margin also subtracts running costs such as salaries, rent and software. Net margin subtracts everything, including interest and tax. All three use the same formula; the discipline is in choosing one cost definition and applying it consistently.

Profit margin formula

  • Profit = Revenue − Total Cost
  • Profit Margin (%) = (Profit ÷ Revenue) × 100
  • Cost Percentage (%) = (Total Cost ÷ Revenue) × 100
  • Markup (%) = (Profit ÷ Total Cost) × 100

Note the denominator in each line: margin divides by revenue, markup divides by cost. Dividing by cost instead of revenue produces markup, a different and larger number, which is the single most frequent source of pricing errors.

Worked example

A studio invoices $10,000 for a project. Contractor fees and software licences directly attributable to the work total $6,500.

  • Profit = 10,000 − 6,500 = 3,500
  • Profit Margin = (3,500 ÷ 10,000) × 100 = 35.00%
  • Cost Percentage = (6,500 ÷ 10,000) × 100 = 65.00%
  • Markup on Cost = (3,500 ÷ 6,500) × 100 ≈ 53.85%

The studio keeps 35% of the invoice value before overheads. If office rent and salaries of $2,000 are then included as operating costs, profit falls to $1,500 and the operating margin becomes 15%.

How to calculate profit margin

  1. Decide which margin you want — gross, operating or net.
  2. Enter total revenue for the period or the single sale you are analysing.
  3. Enter the total cost figure that matches that margin type, using the same period and the same inclusions.
  4. Optionally enter units sold to see profit per unit.
  5. Choose your display currency if you want results formatted differently.
  6. Select Calculate. Nothing is submitted until you do.

Values pasted with commas or currency symbols are accepted, and decimals are supported. Your figures stay in your browser.

How to interpret the result

Read the percentage together with the profit amount. A 60% margin on a $40 sale and a 12% margin on a $4,000 sale are very different businesses, and only the pair of numbers tells the story. A rising margin usually means better pricing, cheaper inputs or a shift towards more profitable products; a falling margin often reflects discounting, rising supplier costs or fee creep from payment processors and marketplaces.

The calculator uses neutral labels — Negative Margin, Low Positive Margin, Positive Margin — rather than calling a result "good" or "bad", because appropriate margins vary significantly by business and industry. A 10% margin is strong in grocery retail and weak in software; the number only means something next to its context.

If the result is negative, the sale costs more than it earns. Before changing price, check whether a cost has been included that belongs in a different margin type — for example counting overheads inside a gross margin calculation.

Common profit margin mistakes

  • Confusing margin with markup. Use the markup calculator when you are building a price up from cost.
  • Mismatched periods. Monthly revenue against annual costs produces a meaningless figure.
  • Forgetting transaction fees. Payment processing, marketplace commission and refunds are real costs of the sale.
  • Including sales tax in revenue. Tax collected for an authority is not your income.
  • Judging viability on margin alone. Volume matters too — check your break-even point to see how many sales that margin needs to cover fixed costs.

Frequently asked questions

Disclaimer

Results from this calculator are estimates for general information only and are not financial, accounting, tax, investment or legal advice. Verify important figures with a qualified professional. Read our full disclaimer.