Profit Margin Calculator

Calculate your selling price, profit, margin and markup from cost or billable hours – all results update as you type.

Profit Margin Calculator
– Selling price

A margin is only as real as the cost behind it.

When cost is time, guessed hours make guessed margins. AI Time Tracker records your billable hours automatically — so the margin you quote is the margin you keep. Free for Mac and Windows.

Get Free AI Time Tracker

Mac ARM 126 MB · Windows 146 MB · Mac ARM version Windows version

AI Time Tracker desktop app

The profit margin formula

Profit margin is the share of the selling price you keep:

margin = (revenue − cost) ÷ revenue × 100

Sell for $100 what cost you $80: profit $20, margin 20%. To work backwards from a target margin, the price is: revenue = cost ÷ (1 − margin) — with a 20% margin on an $80 cost, the price is $80 ÷ 0.8 = $100, not $96.

Watch out: many "margin calculators" online quietly compute markup instead (cost × 1.2 = $96). The 4-point gap between $96 and $100 is exactly the margin-versus-markup confusion, and it scales with every sale. This page always shows both figures side by side so the difference is visible on every number you type.

Margin vs markup — the most common pricing mistake

Both express the same profit as a percentage, but from a different base:

A 25% markup produces only a 20% margin. If you aim for a 50% margin and price with a 50% markup, your real margin is 33% — and the missing 17 points never appear on the invoice. Use the conversion table below to map between the two, and the markup calculator for the markup-first view.

Markup ↔ margin conversion table

MarkupMargin
5%4.8%
10%9.1%
15%13.0%
20%16.7%
25%20.0%
30%23.1%
40%28.6%
50%33.3%
75%42.9%
100%50.0%
150%60.0%
200%66.7%

Rule of thumb: margin = markup ÷ (1 + markup). For values not listed, the calculator above computes both at once.

Average profit margin by industry

Margins vary by orders of magnitude between sectors. Benchmarks help you sense-check your pricing — but margin without accurate cost is decoration. When your cost is labor, the margin is only as real as the hours behind it.

IndustryTypical gross margin
Software / SaaS70–85%
Consulting / agencies25–50%
Construction20–35%
Manufacturing15–25%
Retail20–50%
Restaurants3–5% net
Grocery1–3% net

Agencies and consultancies sit high on the gross-margin table because their cost is time — which is also why a miscalculated hour count lands directly on the margin. The free AI Time Tracker records your hours automatically, so the margin in your quote is the margin in your books.

Profit margin — frequently asked questions

Other calculators

Your margin is only as real as your cost.

For freelancers and agencies, cost is time. AI Time Tracker records every billable hour automatically – so your cost, margin and markup are always based on real data. Download the free app for your Mac or Windows computer.

Get Free AI Time Tracker on your computer

AI Time Tracker is a desktop app for Mac (Apple silicon) and Windows. Send the download link to yourself and open it on your computer.

QR code for the AI Time Tracker download page

Or scan this code to open the download page on another device.