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.
Formula: margin = (revenue − cost) / revenue × 100. Markup = (revenue − cost) / cost × 100.
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
- Pick the mode — calculate margin from cost and price, or solve for price from cost and target margin.
- Enter the cost (COGS) and either the selling price or the target margin %.
- Read the gross profit, margin % and markup %.
- 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?
What is a healthy profit margin?
How do I price for a target 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
Find the break-even point: how many units you must sell to cover fixed and variable costs. Shows units, revenue and contribution margin.
Calculate stock trade profit, loss and percentage return. Includes commission, holding-period annualization and short selling.
Add or remove GST from any price. Supports India GST slabs (5%, 12%, 18%, 28%) and shows CGST/SGST/IGST split.
Add or remove VAT from any price. Presets for UK 20% and common EU rates. Shows net, VAT amount and gross.
Calculate US sales tax. Pick a state for the preset rate or enter your own. Shows subtotal, tax and total.