Profit Margin Calculator
Work out profit, profit margin, and markup from your revenue and cost.
Revenue breakdown
- Profit
- —
- Cost
- —
Formula used
Profit = Revenue − Cost
Margin % = (Profit ÷ Revenue) × 100
Markup % = (Profit ÷ Cost) × 100
Related calculators
Worked example
Revenue (selling price): $1,000 Cost: $600
Profit: $1,000 − $600 = $400
Margin %: ($400 ÷ $1,000) × 100 = 40%
Markup %: ($400 ÷ $600) × 100 ≈ 66.67%
Profit margin is the percentage of each sale you actually keep after costs, and it is arguably the most important health metric a business can track. Revenue tells you how busy you are; margin tells you whether that busyness is making you money. A company doing a million dollars in sales at a 2% margin earns less profit than a side business doing fifty thousand at a 40% margin, and the calculator makes that relationship instant and concrete. The three outputs — profit in dollars, margin as a percentage of selling price, and markup as a percentage of cost — give you the same transaction viewed three ways, which is exactly what you need when pricing, negotiating, or evaluating whether a line of business is worth continuing.
What trips people up is that margin and markup, though closely related, describe different things and are never equal when both are positive: margin is profit over selling price, markup is profit over cost, so markup always reads higher. Quoting one when you mean the other — telling a supplier you "add 40%" when you actually run a 40% margin — produces prices that are wrong by a meaningful margin of error, which is why the calculator shows both side by side rather than forcing you to remember the distinction. Keeping the two straight is the first step to using either one deliberately. The calculator turns pricing from anxiety into arithmetic. Instead of picking a round number and hoping, you can start from the margin you need to stay healthy in your industry and work backward to the price that delivers it at your known cost. A café with a target 70% food margin can enter its ingredient cost and immediately see the minimum menu price; a consultant can confirm a project fee leaves room after subcontractor costs. Margin also reveals which products deserve your attention: two items may bring the same revenue, but if one carries a 50% margin and the other 10%, the first is quietly doing far more for the bottom line, and that insight should shape where you spend marketing and shelf space. When costs rise — a supplier increases prices, shipping gets expensive — re-entering the new cost shows how much you must raise prices to hold margin steady, taking the emotion out of a tough decision. Margin is also the lens that makes discounting safe. Before approving a promotion, check what the discounted price does to your margin; a 30% cut that drops you below a sustainable margin is a sale you are paying for, not profiting from. Tracking margin by product over time also surfaces creeping cost inflation — the slow, quiet rise in materials or labor that erodes profitability long before it shows up as a crisis — so the calculator doubles as an early-warning system when you run it regularly rather than once. The reliability of your margin depends on entering a complete cost, and the most frequent error is undercounting what "cost" means. The figure should include everything that goes into delivering the sale: materials, yes, but also the portion of labor, packaging, payment fees, and shipping that attach to that specific unit. A handmade seller who counts only the raw supplies but not the hours spent will report a glowing margin that evaporates once their own time is valued. For a service business, cost is the deliverable's direct expense — freelancer subcontracts, software seats, fulfillment — not the overhead of running the office, which belongs in a separate profitability view. Being honest about cost is uncomfortable but essential: an inflated margin based on a thin cost number leads to prices too low to sustain the business, the opposite of the tool's purpose.
A few habits consistently distort margin analysis. The first is ignoring mixed carts and bundles, where a discount on one item quietly drags the effective margin of the whole order below what any single product screen shows — model the combined revenue and combined cost together for an accurate picture. The second is celebrating revenue growth while margin shrinks; a business can grow sales by discounting aggressively and look successful right up until the thinner margins fail to cover fixed overhead. The third is treating a single good margin as proof the whole business is healthy, when in reality a few high-margin stars mask several loss-leaders; the calculator is best used per product or per order, not averaged loosely across a catalog. Finally, remember that a negative margin — cost exceeding revenue — is not a rounding error but a flashing warning that the price must rise or the cost must fall before that item is sold again, because repeating the transaction only deepens the loss. When you treat margin as a planning input rather than a post-sale afterthought, it becomes the quickest way to spot which products deserve more of your attention and which are quietly dragging the average down.
Frequently asked questions
What is the difference between profit margin and markup?
Profit margin is profit divided by the selling price (revenue), so it shows how much of each sale you keep. Markup is profit divided by your cost, so it shows how much you added on top of what the item cost you. Margin is always smaller than markup when both are positive.
How do I calculate profit margin from cost and selling price?
Subtract cost from selling price to get profit, then divide profit by the selling price and multiply by 100. For example, a $1,000 sale that cost $600 gives $400 profit and a 40% margin.
Can profit margin be negative?
Yes. If your cost is higher than your revenue, profit is negative and so is the margin — meaning you lose money on each sale. That is a signal to raise price or cut costs.
What is a good profit margin?
It varies widely by industry. Many small retailers aim for 5-10% net margin, while software and service businesses often target 20% or more. Compare against others in your specific field rather than a single number.