Margin Calculator
Enter values and click Calculate to see the breakdown.
Enter values and click Calculate to see the breakdown.
How Does the Formula Work?
The margin calculator works out profit, margin and markup in four ways: from a cost and a selling price, from a cost and the margin you want, from a selling price and the margin you want, or from a cost and a markup. Understanding the difference between margin and markup is essential for pricing strategy, profitability analysis, and financial planning. Margin measures profit as a percentage of the selling price (revenue), while markup measures profit as a percentage of cost. These two metrics describe the same profit from different perspectives; this calculator converts between them instantly. Business owners, freelancers, retailers, and financial analysts use these calculations daily to set prices, evaluate deals, and track profitability.
Margin % = (Profit ÷ Revenue) × 100
Markup % = (Profit ÷ Cost) × 100
Revenue from Cost + Margin: Revenue = Cost ÷ (1 − Margin/100)
Revenue from Cost + Markup: Revenue = Cost × (1 + Markup/100)
Example: Cost $80, Revenue $100 → Profit $20, Margin 20%, Markup 25%
The price the calculator works out (or the cost, in Revenue + Target Margin mode) is rounded once, to the decimals of the amount you typed and at least two. Profit, margin and markup are then worked from the amounts on screen, so they always agree with each other. When rounding moves the rate away from your target, a line under the result gives the rate at the rounded amount.
Margin vs Markup; The Critical Difference
Margin and markup are the most commonly confused financial metrics. They describe the same profit amount but use different bases. If you buy a product for $80 and sell it for $100, the profit is $20. The margin is 20 percent (20 divided by 100, the selling price). The markup is 25 percent (20 divided by 80, the cost). Higher margins always correspond to higher markups, but the numbers are never equal unless both are zero. A 50 percent margin equals a 100 percent markup. A margin of one third (33.3 percent) equals a 50 percent markup. Confusing the two when setting prices can destroy profitability. If you intend a 30 percent margin but accidentally apply a 30 percent markup, your actual margin is only 23 percent; a significant shortfall that compounds across thousands of transactions.
Industry Benchmarks
Published margins depend on the industry and on which margin is meant. Aswath Damodaran's January 2026 dataset for US companies (NYU Stern) puts gross margin at 26.31 percent for grocery and food retail, 32.24 percent for restaurants, 35.30 percent for specialty retail and 71.72 percent for software, against 37.76 percent across all companies. Net margins for the same groups are 1.32, 9.37, 5.19, 25.49 and 9.74 percent. A grocery margin of 1 to 3 percent matches the net figure, not the gross one; this calculator returns a gross margin, so compare its result with the gross figures.
Pricing Strategies
There are three fundamental pricing approaches. Cost-plus pricing adds a fixed markup to cost; simple but ignores market dynamics. Value-based pricing sets price according to perceived customer value; potentially higher margins but requires market research. Competitive pricing matches or undercuts competitors; may sacrifice margin for volume. Most successful businesses use a hybrid approach: they know their cost floor (minimum margin to cover expenses), understand competitive pricing, and capture value through differentiation. This calculator supports all three strategies by letting you work backward from a target margin to find the required selling price, or forward from cost and markup to find the resulting margin. Use the different calculation modes to model scenarios: what margin do I get at this price? What price do I need for a 40 percent margin?
Gross vs Net Margin
This calculator computes gross profit margin: the share of revenue left after the direct cost of goods sold (COGS). Net profit margin is the share left after all expenses (rent, salaries, marketing, taxes, depreciation). A business might have a 40 percent gross margin but only a 10 percent net margin after overhead. Both metrics are important: gross margin evaluates product-level profitability and pricing strategy, while net margin evaluates overall business health. If your net margin significantly trails your gross margin, you may have an overhead efficiency problem rather than a pricing problem. Use this calculator for product-level pricing decisions, and combine it with your full income statement for net margin analysis.
Using This Calculator
Select the calculation mode based on what you know: Cost and Revenue gives you margin and markup directly. Cost and Target Margin calculates the required selling price. Revenue and Target Margin finds the maximum cost you can afford. Cost and Markup shows the resulting revenue and margin percentage. The color-coded margin indicator provides instant feedback: green at 50 percent or more (excellent), blue from 20 up to 50 percent (healthy), yellow above 0 and below 20 percent (thin), red at 0 or below (no profit or a loss). Try different scenarios to find the optimal price point where margin meets market acceptance.
Pricing Your Time
For hourly work, start from what one billable hour costs you: your running expenses and the hours you cannot bill, spread over the hours you can. Enter that amount as the cost in 'Cost + Target Margin' mode and the result is the hourly rate that gives the margin you choose.
Conversion Quick Reference
Common margin-to-markup conversions: 10% margin = 11.1% markup, 20% margin = 25% markup, 25% margin = 33.3% markup, 30% margin = 42.9% markup, 33.3% margin = 49.9% markup, 40% margin = 66.7% markup, 50% margin = 100% markup, 60% margin = 150% markup, 75% margin = 300% markup. Memorizing these benchmarks helps you quickly evaluate deals and pricing without a calculator. This tool validates your mental math and handles the exact conversions for any value you enter.
Tips & Recommendations
50% margin = 100% markup. Always clarify which metric you mean when discussing pricing.
Use 'Cost + Target Margin' mode to get the selling price for the margin you want.
Calculate margins monthly. Seasonal cost changes can erode profitability without you noticing.
Don't forget shipping, packaging, returns, and payment processing fees in your cost calculation.
Frequently Asked Questions
How do margin and markup differ?
Both start from the same profit. Margin divides it by the selling price, markup divides it by the cost. A 50% margin is a 100% markup.
What margins do industries have?
In Aswath Damodaran's January 2026 data for US companies, gross margin is 26.31% in grocery and food retail, 32.24% in restaurants and 71.72% in software; net margin is 1.32%, 9.37% and 25.49%. This calculator gives gross margin, so compare it with the gross figure.
How do I set a target margin?
Select 'Cost + Target Margin' mode and enter your cost and the margin you want. The price is rounded once; if that moves the margin off your target, a line under the result shows the margin at the rounded price.
Is this gross or net margin?
Gross margin: what is left of the selling price after the direct cost of what you sell, as a share of the price. Net margin also takes off overheads, interest and taxes.
Why is my margin lower than my markup?
With a profit, the margin divides by the price, which is larger than the cost, so it comes out lower. With no profit both are 0%; with a loss the margin is the more negative of the two.
Recent Calculations
No calculations yet