Profit Margin Calculator
Find your profit margin and markup percentage from revenue and cost.
How to Use
Enter your revenue (the price you sell at) and your cost (what it took to produce or acquire the item). The calculator shows profit, profit margin (profit as a percentage of revenue), and markup (profit as a percentage of cost), updating live as you type. Because both figures are shown side by side from the same two inputs, this tool doubles as a quick way to convert between the two metrics whenever a supplier quotes one and your own reporting needs the other.
Profit Margin as the Universal Profitability Metric
Profit margin, profit expressed as a percentage of revenue, is one of the most widely used profitability metrics precisely because it's scale-independent: a 20% margin means the same thing whether the underlying sale is 100 or 100,000, which makes it possible to compare a tiny transaction against an entire year's business performance on equal footing. This is also why margin is the figure most commonly used to compare businesses of different sizes within the same industry, or to compare a company's own performance across different years, revenue and profit alone don't tell you much without margin normalizing them into a comparable percentage.
Worked Example: One Sale, Two Different Percentages
Using this tool's own defaults, revenue of 1,500 and cost of 1,000. Profit is straightforward, 1,500 − 1,000 = 500. Profit margin divides that profit by revenue: 500 ÷ 1,500 = 33.33%. Markup divides the same 500 profit by cost instead: 500 ÷ 1,000 = 50%. Both numbers describe the exact same sale and the exact same 500 in profit, they simply answer different questions, margin answers "what share of the selling price is profit," markup answers "how much was added on top of cost." Seeing both side by side, generated from one shared set of inputs, is the fastest way to internalize why the two percentages diverge even though nothing about the underlying transaction changed.
Why This One Formula Covers Both Gross and Net Margin
Margin, expressed as profit over revenue, is a single universal formula, what changes between "gross margin" and "net margin" in standard business terminology isn't the formula itself, it's what gets counted as cost. Using only direct product cost (materials, direct labor, cost of goods sold) in the cost field produces what accountants call gross margin, the profitability of the core product or service before overhead. Using a fully loaded cost figure, direct costs plus rent, salaries, marketing, and all other operating expenses, produces something much closer to net margin, overall business profitability after everything. This calculator doesn't force a choice, feed it whichever cost figure answers the question you're actually asking.
Common Mistakes When Comparing Margins
The most frequent mistake is comparing a margin calculated from direct cost only (gross margin) against a margin calculated from fully loaded cost (closer to net margin) as if they were the same metric, they're not, and a business can have a healthy gross margin while still operating at a net loss once overhead is included. A second common mistake is quoting markup and margin interchangeably in conversation, saying "50% margin" when the actual figure calculated was a 50% markup, which as this tool's worked example shows, corresponds to a genuinely different 33.33% margin, this kind of mix-up can meaningfully distort pricing decisions if it goes unnoticed.
Using Margin to Compare Across Products or Time Periods
Because margin is a percentage rather than a raw currency figure, it's directly comparable across products of wildly different price points, or across the same product at different points in time, in a way raw profit figures alone can't support. A product selling for 50 with a 40% margin and one selling for 5,000 with a 40% margin are equally efficient at converting revenue into profit, even though one generates far more absolute profit per sale. Tracking margin over consecutive periods for the same product is also one of the fastest ways to catch cost creep early, a shrinking margin on unchanged pricing is a direct signal that underlying costs have risen and either pricing or supplier terms need revisiting.
Frequently Asked Questions
What's the difference between profit margin and markup?
Profit margin is profit divided by selling price (revenue), while markup is profit divided by cost. The two percentages are always different for the same sale, margin is always lower than markup, because they use different denominators.
What is a good profit margin?
It varies widely by industry. Retail often runs 20-50%, restaurants 5-10%, and software or services can exceed 70%, since there's little cost of goods involved. Compare your margin to others in your specific industry rather than a universal number.
Is this the same as gross margin or net margin?
It depends entirely on what you enter as "cost." If you only enter direct product cost (cost of goods sold), this calculator effectively produces a gross margin. If you enter total cost including operating expenses, overhead, and everything else that goes into running the business, it produces something closer to net margin. This tool performs the same universal formula, profit divided by revenue, either way, the distinction lives entirely in what you feed into the cost field.
Can profit margin be negative?
Yes, whenever cost exceeds revenue, meaning you sold something for less than it cost to produce or acquire, profit is negative and so is margin. This calculator handles that case correctly, a negative margin is a legitimate and often important result to see clearly, rather than something to hide or round away.
Why does markup always come out higher than margin for the same sale?
Because the two percentages divide the exact same profit figure by two different, unequal numbers. Margin divides profit by revenue (the larger number in any profitable sale), markup divides the same profit by cost (the smaller number). Dividing an identical numerator by a smaller denominator always produces a larger percentage, which is a purely mathematical fact, not a business insight, but it's the single most common source of confusion when the two terms get used interchangeably.
How do I increase my profit margin?
There are only two structural levers, raise revenue (through pricing or volume) without proportionally raising cost, or reduce cost without proportionally reducing revenue. In practice this means either raising prices, negotiating better supplier or input costs, cutting waste and inefficiency, or shifting toward higher-margin products and services within an existing lineup. Comparing margin across product lines using this calculator is a fast way to spot where that second lever, mix shift toward what's already most profitable, might have the biggest impact.