Free Online Profit Margin Calculator

A profit-margin tool returns gross margin = (revenue − cost) / revenue and markup = (revenue − cost) / cost, with a reverse-solve mode for a target price.

Your data is processed entirely in your browser and never sent to any server.

Instant results 100% private No signup needed

Formula: margin = (revenue − cost) / revenue × 100. Markup = (revenue − cost) / cost × 100.

Gross profit
$40.00
Margin
40.00%
Markup
66.67%

For general info only. Gross margin excludes operating expenses, taxes and interest. Use net margin for end-to-end profitability and verify with a qualified accountant.

How to Use This Tool

  1. Pick the mode — calculate margin from cost and price, or solve for price from cost and target margin.
  2. Enter the cost (COGS) and either the selling price or the target margin %.
  3. Read the gross profit, margin % and markup %.
  4. Adjust inputs to plan pricing or evaluate a deal.

What Is a Profit Margin Calculator?

Margin and markup measure the same gap (revenue minus cost) against different bases. Margin = (Revenue − Cost) / Revenue, so a 25% margin means a quarter of every dollar of revenue is profit. Markup = (Revenue − Cost) / Cost, so a 25% markup means the selling price is 1.25× cost. The numbers diverge fast: a 50% markup is only a 33% margin; a 100% markup is a 50% margin.

E-commerce sellers price products by working backwards from a target margin to a selling price. Wholesale buyers translate a supplier's markup quote into the margin they'll actually book. The forward mode accepts cost and revenue (or selling price) and returns gross profit, margin % and markup %. The reverse mode takes cost and a target margin and returns the price required, using Price = Cost / (1 − Margin).

Gross margin only accounts for cost of goods sold. Net margin — after operating expenses, taxes and interest — is always lower, so be clear which figure you're comparing across companies or industries. General information only; consult a qualified accountant for decisions that matter.

Frequently Asked Questions

Margin vs markup — what's the difference?
Margin is profit as a percentage of selling price: (Revenue − Cost) / Revenue. Markup is profit as a percentage of cost: (Revenue − Cost) / Cost. Markup is always higher.
What is a healthy profit margin?
It varies by industry. Software often runs 70%+ gross margin; retail and grocery can sit below 25%. Compare against industry benchmarks rather than absolute numbers.
How do I price for a target margin?
Use the reverse mode — enter your cost and the margin you want, and the tool returns the selling price using Price = Cost / (1 − Margin).

Published by the WeGotEveryTool team. We build and test every tool in-house and update pages when the underlying spec, formula, or recommendation changes.

Reviewed: May 2026. Disclaimer: this tool is provided as-is for general informational use. For decisions with material consequences (medical, legal, financial, security) verify results against a qualified professional source.

Related Finance Tools