Last updated: April 13, 2026
Margin and Markup Calculator
Profit margin and markup are the two most fundamental pricing metrics in business — yet they are also the most frequently confused. Margin measures profit as a percentage of the selling price. Markup measures the same profit as a percentage of the cost. The two numbers are always different for the same product, they move in the same direction, and confusing them is one of the most expensive mistakes a business owner can make. A retailer who prices using a 40% markup when they needed a 40% margin will undercharge on every item they sell — permanently. This free Margin and Markup Calculator computes gross profit margin, markup percentage, selling price, and cost in a single step. No sign-up required.
What Are Profit Margin and Markup?
Gross Profit Margin
Gross profit margin is the percentage of a product’s selling price that represents profit after deducting the direct cost of producing or purchasing that product. It is calculated from the seller’s perspective and always expressed as a share of revenue. A 40% gross margin means that for every $1.00 of revenue, $0.40 is gross profit and $0.60 covers the cost of goods. Gross margin is the profitability metric reported on income statements, used in investor analysis, and benchmarked across industries.
Gross margin is always calculated as a percentage of selling price — never of cost. This is the most important rule to remember.
Markup Percentage
Markup percentage is the percentage added on top of the cost price to arrive at the selling price. It is a cost-based metric used internally by purchasing teams, buyers, and merchandisers to set prices from the bottom up. A 66.7% markup on a $60 item results in a $100 selling price. Markup is always calculated as a percentage of cost — and it will always be a larger number than the equivalent margin percentage for the same product, because cost is always a smaller denominator than selling price.
Margin vs. Markup — Side-by-Side Comparison
| Dimension | Gross Profit Margin | Markup Percentage |
| Definition | Profit as % of selling price | Profit as % of cost |
| Formula | (Selling Price − Cost) ÷ Selling Price × 100 | (Selling Price − Cost) ÷ Cost × 100 |
| Perspective | Revenue-based — used externally | Cost-based — used internally |
| Typical User | Investors, analysts, accountants | Buyers, merchandisers, sales teams |
| Range | Always 0% – 100% | 0% to unlimited (can exceed 100%) |
| Example (Cost $60, Price $100) | 40% margin | 66.67% markup |
Why They Are Always Different Numbers
Margin and markup describe the same dollar profit from two different reference points. Margin uses the selling price as the base; markup uses the cost. Because cost is always smaller than the selling price (assuming any profit exists), the markup percentage will always be higher than the margin percentage for identical products. A 50% markup is equivalent to a 33.3% margin. A 100% markup is equivalent to a 50% margin. Understanding this relationship is critical for pricing accuracy.
Why Margin and Markup Matter
For Pricing Strategy and Profitability
Every pricing decision starts with margin and markup. Whether you are setting a retail price from a supplier cost, negotiating a wholesale deal, or evaluating whether a product line is worth keeping, margin and markup are the two numbers that reveal whether any transaction is profitable and by how much. Businesses that price intuitively rather than systematically routinely underestimate what margin they need to cover overhead, and routinely confuse markup rates with margin targets — resulting in systematically under-priced products that look profitable at the product level but lose money at the business level.
- Identifies the minimum selling price needed to cover costs and achieve a target margin
- Reveals whether individual products, categories, or lines are meeting profitability thresholds
- Enables consistent pricing policy across large SKU catalogues using markup multipliers
For Financial Statement Analysis
Gross profit margin is one of the three key profitability ratios on the income statement, alongside operating margin and net profit margin. It measures the efficiency of a company’s core production or purchasing function — stripped of overhead, interest, and tax. Investors compare gross margin across companies within the same sector because it reveals the inherent economics of a business model.
A software company at 75% gross margin and a grocery chain at 3% are both functioning normally for their industries, but their valuations, reinvestment requirements, and competitive dynamics are entirely different.
To evaluate how your profit margins translate into overall business performance, use our Return on Equity Calculator to measure real investment returns.
For Business Decision-Making
Management teams use gross margin analysis to make product mix decisions, evaluate new product viability, benchmark supplier negotiations, and set sales targets that account for profitability rather than just revenue.
A sales team rewarded purely on revenue can systematically grow a business into lower margin — selling more volume of lower-margin products at the expense of the margins that actually keep the business solvent.
You can also use our Return on Assets Calculator to evaluate how effectively your margins translate into returns on assets.
How to Use the Margin and Markup Calculator (Step-by-Step)
Step 1 — Choose Your Calculation Mode
The calculator offers four modes depending on which two values you know and which you need to find: (1) Cost and Selling Price → calculates margin and markup; (2) Cost and Target Margin → calculates required selling price; (3) Selling Price and Target Markup → calculates required cost ceiling; (4) Cost and Markup Percentage → calculates selling price and resulting margin.
Step 2 — Enter the Cost of Goods (COGS)
Cost of goods is the direct cost to produce, purchase, or source the product — before any overhead allocation. For a retailer this is the wholesale or landed cost. For a manufacturer this is direct materials plus direct labor. Do not include fixed overhead, marketing spend, or operating expenses in this field — those are accounted for separately at the operating margin level. This calculator isolates gross margin, which covers only direct costs.
Step 3 — Enter the Selling Price or Target Margin
Enter either the actual selling price (to calculate the margin and markup you are already earning) or a target gross margin percentage (to calculate what selling price you need to achieve that target). If you are working backwards from a required margin — for example, you know you need 45% gross margin to cover your overhead structure — enter your cost and target margin percentage, and the calculator returns the minimum selling price required.
Step 4 — Read Your Results
The calculator returns gross profit in dollars, gross profit margin as a percentage of selling price, markup as a percentage of cost, and the relationship between the two. For pricing mode, it also returns the recommended selling price and the equivalent markup at that price point. All results update instantly with no page reload required.
Step 5 — Compare Against Industry Benchmarks
Select your industry from the benchmark panel to see how your margin compares against typical sector ranges. A 25% gross margin in software is dangerously low — the industry typically runs 60–80%. A 25% gross margin in manufacturing is entirely normal. Industry context is essential for interpreting whether your margin position is strong, adequate, or under pressure.
Margin and Markup Formulas
Gross Profit Margin Formula
Gross Profit Margin = (Selling Price − Cost) ÷ Selling Price × 100
The margin formula places the selling price in the denominator, which means margin is always bounded between 0% and 100%. A business cannot have a negative margin above 100% of revenue — by definition. If the product is sold below cost, margin is negative. If the product is given away, margin is -∞ theoretically, but in practice margin analysis applies only to profitable transactions.
For a deeper breakdown of profit calculations, use our Margin Calculator to analyze margin performance across different pricing scenarios.
Markup Percentage Formula
Markup % = (Selling Price − Cost) ÷ Cost × 100
The markup formula places the cost in the denominator. Because cost is always smaller than selling price in a profitable transaction, markup will always exceed the equivalent margin percentage. Markup has no upper bound — a product that costs $1 and sells for $100 has a 9,900% markup and a 99% margin. This is why luxury goods, pharmaceutical brands, and information products can carry very high markup percentages while still being expressed with margin percentages that appear more modest.
Selling Price From Cost and Target Margin
Selling Price = Cost ÷ (1 − Target Margin %)
This is the most practically important formula in pricing. If you know your cost and know what gross margin you need to achieve, this formula tells you the minimum price you must charge. A product costing $60 that requires a 40% gross margin must be priced at $60 ÷ (1 − 0.40) = $100. Attempting to reach a 40% margin by adding 40% to the cost ($60 × 1.40 = $84) produces only a 28.6% margin — a critical error made by countless businesses.
Cost From Selling Price and Target Margin
Cost = Selling Price × (1 − Gross Margin %)
This formula calculates the maximum cost you can pay for a product while maintaining a target margin at a fixed selling price. It is the cornerstone of open-to-buy planning and supplier negotiation in retail. If a product must retail at $79.99 and your gross margin target is 45%, your maximum allowable cost is $79.99 × (1 − 0.45) = $43.99. Any supplier whose landed cost exceeds that ceiling makes the product financially unviable at your target margin.
Converting Between Margin and Markup
Markup % = Margin % ÷ (1 − Margin %)
Margin % = Markup % ÷ (1 + Markup %)
These conversion formulas allow you to move freely between the two metrics. They are especially useful when a supplier quotes terms in markup and your finance team reports in margin, or vice versa. The conversion table below provides the most commonly used reference points:
| Margin % | Equivalent Markup % | Markup % | Equivalent Margin % |
| 10% | 11.1% | 10% | 9.1% |
| 20% | 25.0% | 25% | 20.0% |
| 25% | 33.3% | 33% | 24.8% |
| 33% | 49.3% | 50% | 33.3% |
| 40% | 66.7% | 67% | 40.1% |
| 50% | 100.0% | 100% | 50.0% |
Margin and Markup Example Calculations
Example Data — Two Products
| Item | Product A — Apparel | Product B — Electronics |
| Cost of Goods (COGS) | $45.00 | $280.00 |
| Selling Price | $75.00 | $399.99 |
| Gross Profit ($) | $30.00 | $119.99 |
| Gross Profit Margin | 40.0% | 30.0% |
| Markup Percentage | 66.7% | 42.9% |
Product A Calculation — Step by Step
For Product A, an apparel item with a $45.00 cost and $75.00 selling price:
Gross Profit = $75.00 − $45.00 = $30.00
Gross Profit Margin = $30.00 ÷ $75.00 × 100 = 40.0%
Markup % = $30.00 ÷ $45.00 × 100 = 66.7%
Product A earns a 40% gross margin — meaning 40 cents of every dollar of revenue is gross profit. The equivalent markup is 66.7% — a significantly larger number that reflects the same $30 profit expressed as a share of cost rather than price. A buyer setting prices by adding 40% to cost would price this item at $63, producing only a 28.6% margin and leaving $7 in gross profit on the table per unit.
Product B Calculation — Electronics
For Product B with a $280.00 cost and $399.99 selling price:
Gross Profit Margin = ($399.99 − $280.00) ÷ $399.99 × 100 = 30.0%
Markup % = ($399.99 − $280.00) ÷ $280.00 × 100 = 42.9%
Product B runs at a 30% gross margin. Despite a much higher unit profit in absolute dollar terms ($119.99 vs. $30.00), Product B has lower margin efficiency than Product A. This is the key insight that margin analysis provides: absolute dollar profit does not reveal profitability efficiency. A business optimizing for margin will prefer Product A despite its lower unit dollar profit, because Product A earns more per dollar of revenue and requires less cost to generate each dollar of gross profit.
Working Backwards — Setting Price From Target Margin
Suppose your retail business requires a 45% gross margin to cover overhead, and a supplier quotes you a landed cost of $54.00. The minimum price you must charge is:
Selling Price = $54.00 ÷ (1 − 0.45) = $54.00 ÷ 0.55 = $98.18
If market pricing caps the product at $89.99, this product cannot meet your margin target at this cost. Your options are: negotiate the cost down to $89.99 × 0.55 = $49.49, accept a lower margin on this SKU, or substitute a different product. This is the core logic of retail margin management — price must be set from the cost up using the correct formula, not by adding a flat markup percentage.
What Is a Good Profit Margin? — Benchmarks by Industry
Gross Profit Margin Benchmarks by Sector
| Industry / Sector | Typical Margin | Typical Markup | Rating | Key Driver |
| Software / SaaS | 60% – 80% | 150% – 400% | Exceptional | Near-zero COGS; recurring revenue model |
| Financial Services | 40% – 60% | 67% – 150% | Strong | Low direct costs relative to fees |
| Healthcare / Pharma | 30% – 55% | 43% – 122% | Strong | Branded products, regulatory moat |
| Retail (General) | 25% – 50% | 33% – 100% | Average | Competitive pricing, high volume model |
| Manufacturing | 20% – 40% | 25% – 67% | Average | Material and labor cost sensitivity |
| Food & Beverage / Restaurant | 3% – 15% | 3% – 18% | Low | High COGS, waste, and labor costs |
| Grocery / Supermarket | 1% – 5% | 1% – 5% | Very Low | Volume-driven model with thin unit margins |
Why Software Has the Highest Margins
Software-as-a-Service businesses achieve gross margins of 60–80% because their cost of goods — the direct cost to serve each additional customer — is minimal. Once the software is built, delivering it to another customer costs virtually nothing beyond bandwidth and customer support. This near-zero marginal cost creates exceptional unit economics and explains why SaaS companies command premium valuation multiples. Every additional dollar of SaaS revenue translates to 60–80 cents of gross profit available to fund growth.
Why Grocery Has the Lowest Margins
Grocery and supermarket businesses operate on gross margins of 1–5% because they compete primarily on price for commodity products, carry perishable inventory that generates waste, and operate in markets where consumers are highly price-sensitive. Grocery profitability is entirely volume-dependent — the business model only works at massive scale with extremely efficient supply chains. A 2% grocery margin on $500 million in revenue is $10 million in gross profit — meaningful at scale, but deeply fragile if any cost pressure emerges.
Using Benchmarks to Diagnose Your Business
Comparing your gross margin against industry benchmarks reveals three possible positions. If you are significantly above benchmark, you either have a genuine competitive advantage — brand strength, proprietary product, superior sourcing — or you are pricing at a premium that will eventually attract competitive response. If you are at benchmark, your margins are structurally normal and your profitability challenge is operating efficiency. If you are below benchmark, your pricing is too low, your costs are too high, or your product mix is skewed toward lower-margin categories — each of which requires a different corrective strategy.
Benefits of Using This Margin and Markup Calculator
- Instant dual-output — calculates both margin and markup simultaneously from any two inputs
- Four calculation modes — derive any unknown from any two known values: cost, price, margin, or markup
- Selling price calculator — enter cost and target margin to get the exact price you need to charge
- Industry benchmarking — compare your margin against sector-specific ranges for software, retail, manufacturing, food service, healthcare, and more
- Margin-to-markup conversion — instantly convert between the two metrics with a reference table
- No sign-up required — free to use immediately with no registration
Common Mistakes to Avoid
Mistake 1 — Confusing Margin and Markup Percentages
The single most costly pricing error is treating margin and markup as interchangeable. A business that needs 40% gross margin but prices by adding 40% markup will systematically underprice every product. On a $60 item, the correct 40% margin price is $100; the incorrect 40% markup price is $84 — a $16 shortfall per unit that compounds across an entire catalogue. This mistake is so common that it has a name in retail: “markups sold as margins.” Always confirm which basis — cost or selling price — a percentage is being applied to before making any pricing decision.
Mistake 2 — Including Overhead in COGS
Gross profit margin measures the profitability of the product itself — the spread between the selling price and the direct cost to produce or acquire it. Including rent, salaries, marketing spend, or other overhead in the cost figure distorts gross margin downward and produces a number that is neither gross margin nor operating margin — it is an unhelpful hybrid. Calculate gross margin using only direct product costs, then separately analyze operating expenses as a percentage of revenue to understand operating margin.
Mistake 3 — Pricing to a Volume Target Instead of a Margin Target
Many businesses under pressure to grow revenue will accept lower margins to win more volume. This strategy works only if the additional volume generates enough gross profit to offset fixed costs — which requires knowing the contribution margin per unit and the break-even volume at each price point. Growing revenue on declining margins without a specific volume-based profitability model is how businesses grow themselves into unprofitability. Always calculate the margin impact before accepting lower pricing, and model the volume required to compensate.
Mistake 4 — Not Accounting for Returns, Discounts, and Shrinkage
Stated gross margin based on ticket prices overstates actual realized margin. Retail businesses typically experience 5–15% of revenue eroded by returns, markdowns, promotional discounts, and inventory shrinkage. A 45% stated margin with 10% blended discount and return rate produces closer to 38–40% realized margin. Always model your effective margin — the margin actually collected after deductions — rather than relying purely on the initial selling price calculation for business planning and profitability assessment.
Real-World Applications
Retail and E-Commerce Pricing
Every retail pricing decision is a margin and markup calculation. Retailers use markup multipliers to price entire catalogues consistently — applying a 2.5x keystone markup (100% markup / 50% margin) to all products in a category, then adjusting individual items above or below for market positioning. E-commerce operators calculate landed cost (purchase price plus freight, duties, and warehousing) and set margin targets by category. Understanding which categories carry the highest margins helps prioritize promotional spend and traffic acquisition budgets toward the products that generate the most gross profit per visitor.
Wholesale and B2B Pricing
Wholesale businesses face a dual-margin challenge: they must maintain adequate margin on their own cost while leaving enough margin room for their retail customers to operate profitably. A manufacturer selling to retailers at 50% of suggested retail price is giving retailers a 50% margin (or 100% markup). Channels with insufficient margin for their members do not survive — retailers will delist products that do not provide adequate gross profit contribution. Understanding margin at every level of the distribution chain is essential to building sustainable wholesale pricing structures.
Financial Statement and Investor Analysis
Gross profit margin is a core metric in equity analysis. Analysts track gross margin trends over time to identify whether a company’s pricing power is strengthening or eroding, whether raw material cost pressures are being passed through to customers or absorbed, and whether product mix shifts are improving or degrading the overall margin profile.
A company reporting 3% annual gross margin expansion is likely increasing pricing power or shifting to higher-value products. A company with declining gross margins is facing cost inflation, competitive pricing pressure, or structural mix deterioration — each requiring different investment conclusions. Use our free Profit Margin Calculator to analyze net margin, operating margin, and gross margin simultaneously across periods.
Use our Balance Sheet Calculator to analyze the financial position behind your margins and overall business health.
Final Thoughts
Margin and markup are not interchangeable — they describe the same profit from opposite perspectives. Margin is a percentage of selling price; markup is a percentage of cost. Confusing the two is the most common and most expensive pricing error in business. Use the formulas consistently, benchmark your results against your industry, and always work from a target margin backward to the price you need to charge — never from cost forward by adding an arbitrary markup percentage. Use our free Balance Sheet Calculator to connect your margin analysis to the full picture of your business’s financial health.
Frequently Asked Questions
What is the difference between margin and markup?
Margin (gross profit margin) measures profit as a percentage of the selling price. Markup measures the same profit as a percentage of the cost. For a product costing $60 and selling for $100, the gross profit is $40 — that is a 40% margin (40 ÷ 100) and a 66.7% markup (40 ÷ 60). They describe the same dollar profit from different reference points, which is why they always produce different percentages for the same transaction.
How do I calculate gross profit margin?
Gross profit margin = (Selling Price − Cost) ÷ Selling Price × 100. Subtract your cost of goods from your selling price to get gross profit in dollars. Then divide that gross profit by the selling price — not the cost — and multiply by 100 to get the percentage. Always use the selling price as the denominator for margin calculations.
How do I calculate markup percentage?
Markup percentage = (Selling Price − Cost) ÷ Cost × 100. Subtract your cost from your selling price to get gross profit, then divide by the cost (not the selling price) and multiply by 100. Markup will always be a higher percentage than margin for the same product because cost is always a smaller number than selling price.
How do I set a selling price from a target margin?
Use the formula: Selling Price = Cost ÷ (1 − Target Margin %). For example, if your cost is $60 and you need a 40% gross margin, the selling price is $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100. Never set price by adding the margin percentage to the cost — that produces a markup, not a margin. Adding 40% to $60 gives $84, which yields only a 28.6% margin.
What is a good gross profit margin?
A good gross margin depends entirely on the industry. Software companies typically achieve 60–80%, healthcare and financial services 30–55%, retail 25–50%, manufacturing 20–40%, food service 3–15%, and grocery 1–5%. The benchmark that matters most is your own sector average — a margin above your industry norm suggests competitive advantage or premium positioning; a margin below benchmark signals a cost or pricing problem.
Can markup be over 100%?
Yes. Markup has no upper limit and frequently exceeds 100% in industries with high intellectual property value, brand premiums, or very low production costs. A product costing $5 and selling for $50 has a 900% markup and a 90% margin. Luxury goods, pharmaceuticals, software licences, and designer fashion routinely carry markups far above 100%. Margin, by contrast, is always bounded between 0% and 100% because it is expressed as a share of the selling price.
How do I convert margin to markup?
Use the formula: Markup % = Margin % ÷ (1 − Margin %). For a 40% margin: Markup = 0.40 ÷ (1 − 0.40) = 0.40 ÷ 0.60 = 66.7%. To convert markup to margin: Margin % = Markup % ÷ (1 + Markup %). For a 67% markup: Margin = 0.67 ÷ 1.67 = 40.1%.
What is the difference between gross margin and net margin?
Gross margin deducts only the direct cost of goods sold from revenue — it measures the profitability of the product itself before any overhead. Net margin deducts all costs including operating expenses (rent, salaries, marketing), interest, depreciation, and taxes. A business can have an excellent gross margin but poor net margin if its operating expenses are too high relative to revenue. Gross margin tells you about product economics; net margin tells you about overall business efficiency.
About This Calculator
This Margin and Markup Calculator is part of Intelligent Calculator’s Financial Statement suite — built on GAAP gross margin standards, retail pricing methodology, and financial statement analysis principles. Free. No sign-up required.
Markup = (Selling Price - Cost) / Cost x 100
Margin = Markup / (100 + Markup) x 100
Max Cost = Selling Price x (1 - Margin/100)
| Product | Revenue | Profit | Margin |
|---|
| Discount | New Price | New Margin | Extra Volume |
|---|
| Component | Amount | % of Price |
|---|
| Component | Amount | % of Revenue |
|---|
| Metric | Before | After | Change |
|---|
