What this Profit Margin Calculator does
This English-language profit margin calculator computes four key metrics from a single set of inputs: gross margin, markup, operating margin, and net margin. Enter your revenue, cost of goods sold (COGS), and optionally your operating expenses and tax rate — the results update as you type, no page reload required. The tool also runs in two reverse modes. Give it a target gross margin and a unit cost, and it outputs the minimum price you need to charge. Give it a target markup and it does the same. This distinction matters more than most people expect: a 50% markup yields only a 33.3% gross margin. Confusing the two when negotiating wholesale terms or setting a price list is one of the most common — and costly — pricing mistakes in small business and ecommerce. 100% client-side — your data never leaves your browser. No uploads, no tracking, no server logs. If you also need to model how debt or financing affects your bottom line, the [loan calculator](/en/loan-calculator/) is a natural companion for planning alongside margin.
Features
- Four margin metrics at once. Gross margin, markup, operating margin, and net margin are computed simultaneously so you can see where profit erodes — at the product level, the overhead level, or after tax — without switching between cells in a spreadsheet.
- Reverse pricing modes. Set a target gross margin or a target markup percentage, enter your unit cost, and the calculator back-solves the minimum selling price. Useful when a retailer gives you their margin requirement and you need to know if your cost structure can support it.
- Margin vs. markup clarification built in. An inline note surfaces the gross-margin/markup distinction every time you calculate. It's a small detail that prevents a large class of pricing errors when both sides of a negotiation are using the same word to mean different things.
- Operating and net margin in one pass. Add overhead (rent, salaries, marketing) to the operating expenses field and an effective tax rate to go beyond gross margin. The tool shows whether a healthy product margin survives your cost structure and tax liability.
- No account, no server, no tracking. All arithmetic runs locally in your browser. Revenue figures, unit costs, and margins are never transmitted anywhere — safe for confidential pricing work, pre-announcement planning, or any situation where financial numbers are sensitive.
How to use the Profit Margin Calculator
Pick a mode, fill in the fields, and read the results. The calculator updates as you type — no submit button needed.
- Choose a mode. Basic mode computes all four margins from revenue and COGS. Switch to 'Price from target margin' or 'Price from target markup' to reverse-engineer the price from a cost and a goal.
- Enter revenue and COGS. In Basic mode, type your selling price in the Revenue field and the direct cost of the item in COGS. For a $50 product that costs $30 to produce: gross margin = (50 − 30) / 50 = 40%, markup = (50 − 30) / 30 = 66.7%. Both figures appear instantly.
- Add operating expenses and tax rate (optional). Include rent, salaries, fulfillment, and other overhead in the Operating expenses field. Enter your effective tax rate to unlock operating margin and net margin. Leave either field blank to skip those metrics.
- Use reverse mode to anchor a price. Switch to 'Price from target margin', enter your unit cost and the gross margin percentage you need — say 45% — and the calculator outputs the floor price. Do the same with a target markup to match a buyer's stated requirement.
- Confirm the margin vs. markup note before sharing numbers. The inline note reminds you which figure is margin and which is markup. Check it before handing numbers to a supplier or buyer to make sure both sides are working from the same definition.
Common use cases
- Pricing a new SKU before launch. Enter your unit cost and the gross margin your business model requires, then use reverse mode to find the floor price. You can then layer competitive positioning on top rather than guessing at a number and hoping the margin works out.
- Negotiating wholesale terms. Retailers often state requirements as markup; manufacturers quote gross margin. Running both figures through the calculator before a call prevents the silent margin erosion that comes from each side assuming the other is speaking the same language.
- Quarterly margin tracking. Paste in revenue and COGS from each quarter to compare gross, operating, and net margin across periods. Margin compression shows up clearly when you see all three metrics together — even in quarters when absolute profit dollars are still rising.
- Modeling the impact of a discount or promotion. A 10% discount on a product with a 30% gross margin doesn't reduce margin by 10% — it drops gross margin to roughly 22.2%. Enter the discounted price with the same COGS to see the real impact before committing to a campaign.
- Sanity-checking a supplier's quoted margin. When a supplier quotes you a 'margin' on a deal, plug in their numbers and verify whether they mean gross margin or markup. A 40% markup is only a 28.6% gross margin — a gap that compounds across every unit sold. For projecting how margin gains compound over multiple years, the [Investment ROI Calculator](/en/investment-roi-calculator/) pairs well with this tool.
Frequently asked questions
What's the difference between gross margin and markup?
Gross margin divides profit by revenue. Markup divides profit by cost. A product that costs $60 and sells for $100 has a 40% gross margin and a 66.7% markup. The two numbers are related but not interchangeable — always confirm which one a supplier, buyer, or financial report is using before making decisions based on it.
What is a good gross margin for my business?
It depends entirely on the industry. Software companies often run 70–80% gross margins; grocery retail runs 25–30%; manufacturing ranges from 20% to 50%. Like many benchmark ranges, margin 'norms' are only meaningful relative to peers in the same sector and cost structure. Track your own trend quarter-over-quarter — direction matters as much as the absolute figure.
Does this calculator send my revenue or cost data to a server?
No. All calculations run locally in your browser using JavaScript. Nothing is transmitted to any server, logged, or stored. You can use it safely for confidential pricing work, pre-announcement planning, or any context where financial figures are sensitive.
Why can gross margin look healthy while the business still loses money?
Gross margin only covers direct costs (COGS). If operating expenses — salaries, rent, marketing, payment processing — consume more than gross profit, the business runs an operating loss even with strong product margins. That's why this calculator also outputs operating margin and net margin: a 60% gross margin combined with 70% operating expenses means the business is losing money at the operating level.
How is figuring profit margin different for SaaS vs. ecommerce?
For ecommerce, COGS typically includes product cost, packaging, and fulfillment. For SaaS, COGS is mostly hosting, support infrastructure, and payment-processing fees — which pushes gross margins structurally higher. The calculator works for both models. SaaS businesses should also track contribution margin and CAC payback alongside gross margin, since traditional COGS-based margin can overstate unit-level profitability when customer acquisition costs are high.
Can I use this as a project margin calculator or business margin calculator?
Yes. For project margin, treat project revenue as the Revenue field and direct project costs — labor, materials, subcontractors — as COGS. Add overhead allocations in Operating expenses. The output gives you gross project margin, operating margin after overhead, and net margin after taxes, using the same structure as a product or business margin calculation.