AllCalculators

Profit Margin Calculator

Find profit margin and markup for a single product or your whole business, or the selling price you need for a target margin.

How it works, examples & FAQ

Profit margin

40.0%

Profit per item

$20.00

Markup on cost

66.7%

How it's calculated

Profit margin = (Revenue − Costs) ÷ Revenue × 100. Markup = (Revenue − Costs) ÷ Costs × 100. For a single product, revenue is the selling price and costs are the cost price.

Selling price for a target margin = Cost ÷ (1 − margin %). For example, an item that costs $30 needs to sell for $50 to earn a 40% margin — which is a 66.7% markup.

The Complete Guide to Profit Margin

By Arshi Khan, Founder of Just4Marketing · Last reviewed October 2026

Profit margin and markup are calculated from the same two numbers — revenue and costs — but they answer different questions and are two of the most commonly confused terms in business. This guide clears up the difference and shows exactly how each is calculated.

What is profit margin and why does it matter?

Profit margin measures how much of your revenue turns into profit, expressed as a percentage: Margin = (Revenue − Costs) ÷ Revenue × 100. It answers "of every dollar that comes in, how much do I keep?" — a figure that's directly comparable across products, time periods, and even different businesses, regardless of their size.

Markup answers a related but different question: "how much did I add on top of my cost?" It's calculated as Markup = (Revenue − Costs) ÷ Costs × 100. Both use the same profit figure (Revenue − Costs) in the numerator, but margin divides by revenue while markup divides by cost — which is exactly why the two percentages are never equal for the same sale.

Margin vs. markup: side by side

Using a product that costs $60 and sells for $100 (a $40 profit on every unit):

MetricFormulaResult
Gross profitRevenue − Costs$100 − $60 = $40
Profit marginProfit ÷ Revenue × 100$40 ÷ $100 = 40%
MarkupProfit ÷ Cost × 100$40 ÷ $60 = 66.7%

How to price for a target margin

To hit a specific margin, divide your cost by what's left after the margin: selling price = cost ÷ (1 − target margin). A product that costs $30 needs a price of $30 ÷ 0.60 = $50 for a 40% margin.

The most common pricing mistake is adding the margin percentage to the cost instead. $30 plus 40% is $42, which is a 40% markup but only a 28.6% margin. Choose "Price for a target margin" above to get the right number directly.

Target marginPrice for a $30 costEquivalent markup
20%$37.5025%
30%$42.8642.9%
40%$50.0066.7%
50%$60.00100%

Things to keep in mind

  • Margin and markup are never the same number

    Except at 0%, markup will always be a higher percentage than margin for the same sale, because it's calculated against the smaller base (cost) instead of the larger one (revenue).

  • Pricing by markup can undershoot your margin goal

    If you want a 50% margin and instead apply a 50% markup, you'll actually land at a 33% margin — a common and costly pricing mistake for new businesses.

  • Be clear about which costs you're including

    Gross margin (product cost only) and net margin (all business expenses) tell very different stories. Compare like with like, especially against industry benchmarks.

  • High margin doesn't always mean high profit

    A high margin on low sales volume can still produce less total profit than a lower margin on high volume — margin percentage and total profit dollars are separate questions.

Frequently asked questions

What's the difference between profit margin and markup?

Profit margin is profit as a percentage of revenue: (Revenue − Costs) ÷ Revenue × 100. Markup is profit as a percentage of cost: (Revenue − Costs) ÷ Costs × 100. Because revenue is always larger than cost on a profitable sale, margin is always a smaller percentage than markup on the same numbers.

If I want a 50% profit margin, what markup do I need?

A 50% margin requires a 100% markup — you'd need to sell an item for double what it cost you. This is the most common mistake in pricing: setting a markup percentage equal to your target margin percentage actually produces a lower margin than intended.

What counts as a good profit margin?

It varies widely by industry. Grocery and retail often run on margins in the low single digits to around 10%, while software and services businesses can see margins of 20% or higher due to lower per-unit costs. Compare your margin against others in your specific industry rather than a universal benchmark.

Does 'costs' mean just the product cost, or everything?

It depends on which margin you're measuring. Gross margin typically uses only the direct cost of producing the good or service (cost of goods sold). Net margin subtracts all operating expenses, taxes, and interest as well. Be consistent about which one you're calculating and comparing.

You might also like