UTILS.
Private by default
$%

Profit Margin & Markup Calculator

Calculate gross, operating and net profit margins from revenue and costs, or convert between unit cost, selling price, markup % and margin %.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Profit Margin & Markup Calculator is a free, in-browser tool with two calculators. Business margins computes the three standard P&L margins: gross margin from revenue minus cost of goods sold, operating margin after operating expenses, and net margin after interest, tax and other costs. Unit price, markup & margin takes a unit cost plus any one of a selling price, a margin % or a markup %, and solves for the rest.

Each P&L margin is the corresponding profit divided by revenue, as a percentage: gross = (revenue − COGS) ÷ revenue, operating = (gross profit − opex) ÷ revenue, net = (operating income − other costs) ÷ revenue. Enter a target net margin and the tool also solves for the revenue you would need at your current cost base.

For a single product, markup % = profit ÷ cost × 100 and margin % = profit ÷ price × 100. From a target margin, price = cost ÷ (1 − margin ÷ 100) and markup = margin ÷ (100 − margin) × 100; from a target markup, price = cost × (1 + markup ÷ 100) and margin = markup ÷ (100 + markup) × 100. A 50% markup is only a 33.33% margin. All figures stay in your browser.

Frequently asked questions

What is the difference between gross, operating and net margin?
Gross margin only subtracts direct product costs (COGS); operating margin also subtracts operating expenses like salaries, rent and marketing; net margin further subtracts everything else — interest, taxes and one-off costs. Each level tells you where profit is being made or lost.
How is the required revenue calculated?
It holds all your entered costs fixed and solves revenue = total costs ÷ (1 − target margin). In reality COGS usually scales with sales, so treat it as the revenue needed if costs stayed flat.
Can the margins be negative?
Yes — if costs at any level exceed revenue, the profit and margin at that level show as negative, which is exactly how a loss reads on a P&L.
What is the difference between markup and margin?
Both describe profit, but against different bases. Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price. Because price is larger than cost, margin is the smaller number: a 50% markup equals a 33.33% margin.
How do I convert a markup to a margin, or back?
Margin % = markup ÷ (100 + markup) × 100, and markup % = margin ÷ (100 − margin) × 100. Choose Unit price, markup & margin, enter the unit cost, and solve from the percentage you have; the tool shows the other percentage, the selling price and the profit per unit.
How do I price a product from its cost?
Enter the unit cost and solve from markup % or margin %. A cost of 40 with a 50% markup sells at 60.00 (a 33.33% margin); the same cost at a 40% margin sells at 66.67. The tool rejects a margin of 100% or more, because the price would be infinite.

More tools