Margin Calculator
Gross margin and target price from margin.
The Margin Calculator is an essential tool for business owners, product managers, and pricing analysts. Calculate your gross profit margin percentage from cost and revenue data, find the selling price needed to achieve a target margin, or work backwards from revenue to find implied costs. Understanding your margins is fundamental to sustainable pricing — a business can have strong revenue but thin margins that leave little room for operating expenses, taxes, or reinvestment. This calculator helps you see exactly where you stand.
See also: Percentage Points vs Percent Change: Don’t Mix Them Up, How to Estimate a Realistic Break-Even Point, Understanding Compound Interest (APR, APY, Compounding Frequency), Loan Repayment Methods: Equal Payment vs. Equal Principal · Markup Calculator, Commission Calculator, Break-Even Calculator.
When this calculator helps most
Use when you need gross margin as a percent of revenue, or to solve for a list price that hits a target margin given unit cost.
What each input means
- Revenue (selling price) — Top-line sales amount for the product or service line. (your currency)
- Cost (COGS) — Direct cost attributed to the sale — not full overhead unless noted. (same currency)
- Target margin % — Desired gross margin when solving for required price. (%)
Input mistakes to avoid
- •Margin uses revenue as denominator: (rev − cost) / rev, not cost as base.
- •Target price from margin: cost ÷ (1 − margin) requires margin as decimal fraction of price.
Margin Calculator
Formula
Examples
Product Costing $40, Sold for $60
Calculate the profit margin on a product with $40 cost and $60 selling price.
→ Gross Margin: 33.3%, Profit: $20
Target Margin Pricing — 45% Margin
Find the selling price needed to achieve 45% margin on a $55 product.
→ Required selling price: $100.00
E-commerce Product at $12 Cost
A dropshipping product costs $12 delivered. What price achieves a 60% margin?
→ Required selling price: $30.00, Profit: $18.00
Comparing Two Products
Product A: cost $80, price $120. Product B: cost $15, price $35. Which has a better margin?
→ Product A: 33.3% margin. Product B: 57.1% margin. Product B is more profitable per dollar of revenue.
How to read your results
- →Gross margin % = (revenue − COGS) / revenue — profit per dollar of sales.
- →Higher margin means more room per sale for rent, payroll, marketing, and profit.
- →Target-price mode uses cost ÷ (1 − margin) — margin is on price, not on cost.
What this result means
Margin answers “how many cents of each sales dollar remain after direct cost” at the gross level you modeled.
Common Pitfalls
- ⚠️Confusing gross margin with net margin — operating costs sit below gross profit.
- ⚠️Using list price instead of net-of-returns revenue as the margin denominator.
- ⚠️Comparing margins across industries without benchmark context.
Tips
- ✓Focus on margin percentages rather than absolute profit figures when comparing products.
- ✓Track margins over time — shrinking margins often signal rising costs before they hit profits.
- ✓A high revenue business with 2% margins needs every sale to go right; a 50% margin business has much more cushion.
- ✓Factor in returns, shrinkage, and payment processing fees when calculating true margins for e-commerce.
How to check your results
- ✓Check: profit = rev − cost; margin = profit/rev.
Warnings & Limitations
- ⚠️Regulated or commodity businesses may have structurally thin margins — validate against peers.
What this calculator does not tell you
- –Net margin after operating expenses, interest, and tax — this is gross margin unless you expand COGS definition.
- –Volume needed to cover fixed costs — pair with break-even for that.
- –Customer willingness-to-pay or competitive pricing.
Frequently Asked Questions
What is gross profit margin?
Gross Margin % = (Revenue − Cost of Goods Sold) / Revenue × 100. It shows what percentage of each dollar of revenue remains after covering direct production or purchase costs. Operating expenses, taxes, and interest are not included.
What is the difference between margin and markup?
Margin is profit as a percentage of selling price. Markup is profit as a percentage of cost. Example: cost $60, price $100 → profit $40. Margin = 40/100 = 40%. Markup = 40/60 = 66.7%. They describe the same profit from different reference points.
What is a good profit margin?
It varies widely by industry. Software/SaaS: 70–80%. Retail (physical goods): 2–5%. Restaurants: 3–9%. Manufacturing: 5–20%. Healthcare: 10–20%. Always compare to industry benchmarks, not absolute numbers.
How do I find the selling price to achieve a target margin?
Use the formula: Selling Price = Cost / (1 − Target Margin / 100). Example: Cost $50, target margin 40% → Price = $50 / (1 − 0.40) = $50 / 0.60 = $83.33.
What is the difference between gross margin and net margin?
Gross margin subtracts only cost of goods sold (COGS) from revenue. Net margin subtracts COGS plus all operating expenses, interest, and taxes. Net margin gives the full picture of profitability.
Why does a 50% markup not equal a 50% margin?
Because they use different bases. 50% markup on a $100 cost = $150 price → margin = $50/$150 = 33.3%. The margin is always lower than the markup for the same profit amount.
Sources & References
Editorial & review note
Margin is always relative to selling price on this page; cost-first readers are pointed to the Markup calculator so denominator mistakes do not cascade into pricing decisions.
Related Calculators
Markup Calculator
Selling price and profit from markup.
Business & PricingCommission Calculator
Earnings from sales and commission rate.
Business & PricingBreak-Even Calculator
Units and revenue to break even.
Business & PricingInvoice VAT Calculator
Line-item invoice totals with VAT.
Business & PricingAge Calculator
PopularAccurately compute age from date of birth.
Date & TimeBMI Calculator
PopularBody mass index and healthy range.
Health BasicsRelated guides
Percentage Points vs Percent Change: Don’t Mix Them Up
Moving from 3% to 5% is a 2 percentage point increase, but a roughly 66.7% relative increase. Mixing these ideas causes bad headlines and bad business decisions.
How to Estimate a Realistic Break-Even Point
Textbook break-even divides fixed costs by contribution margin. In practice, capacity, seasonality, discounts, and semi-variable costs distort the line — here is how to stress-test.
Understanding Compound Interest (APR, APY, Compounding Frequency)
Learn how compound interest grows your money, how APR differs from APY, and why compounding frequency matters less than time and rate.
Loan Repayment Methods: Equal Payment vs. Equal Principal
Compare amortization methods, interest impact, and monthly payment profiles to pick a plan that fits your cash flow.