Profit Margin Calculator for Digital and Physical Products

By Jeff Cobb.  Last Updated on September 9, 2026
Profit Margin Calculator | Learning Revolution
Free Tool — by Jeff Cobb

Profit Margin Calculator

Solve for whichever number you don’t have — margin, selling price, or cost — instead of only running the math one direction. Enter any two of the three and get the third instantly.

Selling a course, membership, or other digital product? Your real “cost” is usually near $0 up front — it’s platform fees, payment processing, and refunds that eat into margin instead. The Gross Profit Calculator breaks that down automatically.
Profit
$0
Margin
0%
Markup
0%

Quick markup ↔ margin converter

These get confused constantly — they’re not the same percentage. Convert one to the other here.

% markup
=
33.3% margin
Units soldRevenueTotal profit

How to calculate profit margin

Profit margin answers one question: of every dollar a sale brings in, how much is actually profit? The formula depends on which number you already know and which one you’re solving for — this calculator handles all three directions, not just the one most tools default to.

Know cost and price → find margin:
Margin % = (Price Cost) ÷ Price × 100

Know cost and target margin → find price:
Price = Cost ÷ (1 Margin %)

Know price and target margin → find max cost:
Cost = Price × (1 Margin %)

That second formula — dividing by (1 − margin), not multiplying by (1 + margin) — is the single most common mistake in margin math. Multiplying by 1.40 to “add a 40% margin” actually produces a 28.6% margin, not 40%, because it calculates markup, not margin. The converter above exists specifically because this mix-up is so common.

Example — finding a price for a target margin

Something costs you $60 to produce and you want a 40% margin. Price = $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100. Check it: profit is $40, and $40 ÷ $100 = 40% margin — correct. Multiplying $60 by 1.40 instead would have given you $84, which is actually only a 28.6% margin.

What’s a good profit margin?

It depends entirely on what you’re selling — there’s no single “good” number that applies everywhere. Here’s roughly how margin expectations shift by business type:

Physical retail
Products with real material & shipping cost
20-50%
Services
Coaching, consulting, freelance work
40-60%
Digital products
Courses, memberships, software
80-95%+

Compare your margin against your own category, not a universal benchmark — a 45% margin is strong for a physical product business and a warning sign for a course business, where near-zero production cost should put you far higher.

Margin vs. markup — the difference that trips everyone up

Margin is profit as a percentage of selling price. Markup is profit as a percentage of cost. Same dollar amount of profit, two different percentages, because the denominator changes. A $40 profit on a $100 sale ($60 cost) is a 40% margin — but it’s also a 66.7% markup ($40 ÷ $60). They’ll never be equal except at very small percentages, and the gap widens the higher the percentage goes, which is exactly why “add a 50% markup” and “hit a 50% margin” land on completely different prices.

Frequently asked questions

How do I calculate a 40% profit margin?
Divide your cost by (1 − 0.40), i.e. by 0.6. A $60 cost divided by 0.6 gives a $100 price, which produces exactly a 40% margin. Don’t multiply the cost by 1.4 — that gives a lower margin than intended.
Is a 20% profit margin good?
For a physical product or retail business, 20% is on the lower end of typical but not unusual. For a service or digital product business, 20% is quite low and usually signals pricing that’s too aggressive relative to costs, or costs that are higher than they should be.
What’s the difference between gross margin and net margin?
Gross margin subtracts only the direct cost of producing or delivering what you sold. Net margin subtracts everything — overhead, software, contractors, advertising, taxes. Net margin is always equal to or lower than gross margin, sometimes substantially so.
How much should I mark up a product to get a 30% margin?
Use the converter above, but the direct formula is: Markup % = Margin % ÷ (1 − Margin %). For a 30% margin, that’s 0.30 ÷ 0.70 ≈ 42.9% markup — noticeably higher than the margin percentage itself, which is the part people most often get wrong.
Does profit margin account for taxes?
No — profit margin as calculated here is pre-tax. It measures pricing and cost efficiency, not your final take-home after tax obligations, which vary by business structure and jurisdiction.
Selling a course or membership specifically?

The Gross Profit Calculator handles platform fees, payment processing, and refund rate automatically — the real costs behind a digital sale.

Related guides:

Head shot of Learning Revolution Founder Jeff Cobb

Jeff Cobb, Founder of Learning Revolution

Jeff Cobb is an expert in online education and the business of adult lifelong learning. Over the past 20+ years he has built a thriving career based on that expertise – as an entrepreneur, a consultant, an author, and a speaker. Learning Revolution is a place where Jeff curates tips, insights, and resources to help you build a thriving expertise-based business. Learn more about Jeff Cobb here.

Scroll to Top