Calculate profit margin % and markup instantly. See both figures together for every pricing decision — ideal for retail, ecommerce, and small business.
Set the Right Price — Not Just a Guess
Most pricing mistakes happen when business owners rely on intuition rather than numbers. This profit margin calculator lets you calculate profit margin %, gross margin ratio, and markup together for every scenario — so you can see whether a price actually generates profit before you commit to it. Ideal for retail, ecommerce, and any business that needs to price from real numbers: use it to validate existing prices, set a profitable selling price from cost, or find your true margin floor.
A small pricing mistake can reduce your profit more than a drop in sales — this calculator helps prevent that.
Used by ecommerce sellers, retailers, and business owners to make confident pricing decisions. No data stored. Calculations run instantly in your browser.
Tip: Use “Selling Price from Margin” mode to find the exact price needed to hit your target profit margin.
Profit
Gross Margin %
Markup %
Selling Price
Profit
Markup %
Selling Price
Profit
Gross Margin %
Gross Profit
Gross Margin %
Markup %
Gross Margin %
COGS
Markup %
What Your Result Means
A 30% gross margin means you keep 30 cents of every dollar earned as gross profit — before operating costs.
If markup is high but margin is low, your effective cost (including fees and overheads) is eating into the profit you expected.
Margins below 20–25% leave little room to cover fixed costs in most retail and ecommerce businesses.
A margin above 50% indicates strong pricing power or low production cost — typical for software, branded goods, and service businesses.
If your margin is below your industry benchmark, your pricing or cost structure needs adjustment.
Increasing price slightly often improves margin more than increasing sales volume.
Use the Selling Price mode if your current result is below target — it shows exactly what price you need to hit your desired margin.
This formula shows how much of your selling price becomes profit after covering cost.
Tip: Always check your margin before finalising any pricing decision — small cost changes or platform fees can have a surprisingly large impact on actual profit.
How to Use the Profit Margin Calculator
Select the calculation mode — Margin %, Selling Price from Margin, Selling Price from Markup, Gross Profit from Revenue, or Margin % from Profit.
Enter the known values — cost price, selling price, COGS, revenue, target margin %, or markup % as required by the active mode.
Click Calculate to see Gross Profit, Margin %, and Markup % together with the full formula used.
Use the result to set a price, validate a margin target, or compare scenarios before committing to a pricing decision.
What Is Profit Margin?
Profit margin measures how much of your revenue remains as profit after covering the cost of goods sold. It is the single most important pricing metric for any business — telling you in plain percentage terms how efficiently each sale converts into actual profit.
Whether you run an ecommerce store, a retail shop, a wholesale operation, or a service business, knowing your gross margin before setting prices is essential. This calculator uses the standard gross profit margin formula applied in real-world invoicing, financial reporting, and business planning.
Gross Profit Margin Formula
Gross Profit = Revenue − Cost of Goods Sold (COGS)Gross Margin % = (Gross Profit ÷ Revenue) × 100
Revenue = total income from sales before any deductions
COGS = direct costs of the goods or services sold (materials, production, purchase price)
Gross Margin % = the share of each dollar of revenue that is profit
What Gross Margin Tells You
Pricing efficiency — whether your prices cover production or purchase costs with enough left over to be sustainable
Product profitability — which products, categories, or services generate the most profit per sale
Benchmark position — how your margins compare against industry averages and competitors
Scalability — high gross margins indicate a business that generates more profit from incremental revenue growth
Profit Margin vs Markup — The Critical Difference
These two figures use the same underlying numbers but measure entirely different things. Confusing margin and markup is one of the most common and costly pricing errors in business.
Factor
Gross Margin
Markup
Based on
Selling price (revenue)
Cost price
Formula
(Profit ÷ Selling Price) × 100
(Profit ÷ Cost Price) × 100
Always
Lower (for the same transaction)
Higher (for the same transaction)
Who uses it
Finance, accounting, investors
Procurement, sales, retail buyers
Example (Cost 100, Sell 150)
33.33%
50%
The Classic Example
Cost Price: 100 | Selling Price: 150
Profit = 150 − 100 = 50
Gross Margin % = (50 ÷ 150) × 100 = 33.33% — profit as a share of selling price
Markup % = (50 ÷ 100) × 100 = 50% — profit as a share of cost price
The rule: Margin is always lower than markup for a profitable product. A supplier who quotes "50% markup" has not created a 50% margin — the actual gross margin is 33.33%. This gap grows significantly as the percentage rises. Always confirm which figure is being used before building a pricing structure or accepting a deal.
How to Calculate Selling Price from Margin or Markup
Most pricing decisions start with a known cost and a target return. Here are the two most common reverse-calculation scenarios.
Use this when a supplier or buyer quotes a markup and you need the final price
Both modes are available in the calculator above. Each result shows both the gross margin and the markup percentage so you always see the complete picture regardless of which mode you use.
Once you have your net selling price, use the GST Calculator to add the applicable tax rate and calculate the GST-inclusive price for customer invoices.
How Businesses Use Gross Margin Calculations
Setting ecommerce product prices
Online sellers typically buy at a wholesale cost and need to cover platform fees (5–15%), payment processing (1.5–3%), shipping, returns, and still achieve a target margin. The correct approach is to add all variable costs to the product cost before calculating margin — the selling price must cover all of them, not just the purchase price.
Retail pricing and category management
Retailers track gross margin by category. High-margin categories (seasonal, branded, private label) subsidise low-margin must-carry lines. Reviewing margin by SKU helps identify which products to promote, discontinue, or reprice. A 10-point margin improvement on 100 units generates more profit than doubling sales at the same thin margin.
Wholesale and distribution pricing
Wholesalers apply markup to landed cost to set trade prices, then check whether the resulting margin is sustainable at expected volume. Bulk pricing tiers, early payment discounts, and freight all erode effective margin — calculating at each tier prevents agreeing to deals that look profitable but are not.
Service business pricing
Service businesses define COGS as direct labour time plus materials or tools. A freelancer with a 500 daily cost (time + software) quoting a 700 project achieves only a 28.6% margin — below the 40%+ that most service businesses need to cover overheads. Running mode 1 of this calculator confirms whether a quote is actually profitable.
Financial reporting
Gross margin appears on the income statement above operating expenses and is the first profitability figure investors and lenders review. Consistent gross margins above industry benchmark signal pricing discipline. Declining margins quarter-over-quarter indicate rising COGS or pricing pressure. For loan-based business financing, the Loan Calculator and Interest Calculator help model the debt cost that must be recovered through margin.
Common Pricing Mistakes That Damage Gross Margin
Treating markup and margin as equivalent — A business targeting "40% margin" but calculating with the markup formula ends up with a 40% markup and only a 28.6% margin. The shortfall compounds across hundreds of transactions.
Excluding variable costs from COGS — Platform fees, payment processing, and packaging are direct costs of the sale. Leaving them out of COGS overstates margin and understates the real cost per unit sold.
Calculating margin on GST-inclusive prices — GST collected on sales flows through to the tax authority, not your bottom line. Running margin on gross (GST-inclusive) revenue inflates the denominator and understates your true margin. Use the GST Calculator to separate the tax component before calculating margin.
Matching competitor prices without a cost analysis — Pricing to match a competitor may produce a margin that does not cover your cost structure. Their COGS, overheads, and volume may be fundamentally different from yours. Calculate your own margin floor first.
Not recalculating after supplier price changes — A 5% increase in COGS reduces gross margin significantly if the selling price is not adjusted. On a 30% margin product, a 5% COGS increase with no price change drops margin to approximately 26.4%.
At 42.9% margin, this project contributes strongly to covering fixed overheads.
After setting your margin, use the Percentage Calculator for quick percentage cross-checks. Use the Discount Impact Calculator to understand how discounts reduce your margin and how much extra volume is needed to recover the lost profit. Use the Break-even Calculator to see how your margin affects break-even — the exact revenue your business needs to earn before profit begins.
Gross Margin Benchmarks by Industry
Software / SaaS: 70–90% — minimal COGS, high scalability
Retail apparel and fashion: 50–65% — high product variety, seasonal
Food and beverage (restaurant): 60–70% gross on food cost, but net margin often below 10% after labour and rent
Freelance / consulting: 50–80% — low COGS, high margin on time
Use your sector benchmark as a minimum target, not a ceiling. Margins above benchmark indicate efficient pricing or sourcing. Margins consistently below benchmark signal either pricing pressure or cost inefficiency that needs addressing.
Why Use AixKit Profit Margin Calculator
Five calculation modes — margin %, selling price from margin, selling price from markup, gross profit from revenue, and reverse margin from profit
Every result shows Gross Profit, Margin %, and Markup % together so you always have the complete picture
Inline formula display for every calculation — see the exact maths, not just the result
Zero-safe and divide-by-zero safe — validated inputs prevent errors before they reach the calculator
No external library dependencies — instant results with no lag on any device
Free, no account required — works on desktop, tablet, and mobile
Use This as a Pricing Calculator for Your Business
Beyond calculating margin on a known cost and price, this tool works as a practical selling price calculator, a markup calculator, and a pricing calculator for everyday business decisions.
As a selling price calculator
Enter your cost and a target gross margin percentage. The calculator returns the exact selling price you need to charge to hit that margin. This is the fastest way to price a new product, set a quote for a client, or validate that a proposed price is actually profitable — not just covering cost. For a dedicated tool with additional pricing modes, use the Selling Price Calculator to set the correct selling price from margin, markup, profit amount, or revenue goal.
As a markup calculator
Enter cost and markup percentage to find the selling price and confirm the resulting gross margin. Because markup and margin are different measures, seeing both together prevents the common error of believing a 50% markup creates a 50% margin (it creates 33.33%).
As a gross margin calculator for financial review
Enter revenue and COGS to produce the gross profit and gross margin ratio. Use this mode when reviewing product category performance, preparing financial summaries, or comparing margins across different product lines to identify where pricing or sourcing improvements are needed.
After calculating your profit margin, use the GST Calculator to determine the final selling price including tax without affecting your true margin. For promotional scenarios, the Discount Calculator shows how discounting impacts your gross margin. Use the Percentage Calculator for quick percentage cross-checks on any figure.
Frequently Asked Questions
It depends entirely on industry and business model. Software and SaaS businesses typically achieve 70–90%. Retail apparel: 50–65%. eCommerce general retail: 30–50%. Consumer electronics: 20–40%. Wholesale distribution: 15–30%. Service businesses with low COGS can reach 50–80%. Use your sector benchmark as a minimum floor rather than a generic target — consistently exceeding it indicates strong pricing discipline or sourcing efficiency.
Gross margin is profit expressed as a percentage of the selling price. Markup is profit expressed as a percentage of the cost price. For the same transaction, markup is always higher than margin. Example: cost 100, selling price 150, profit 50. Gross Margin = 50 ÷ 150 = 33.33%. Markup = 50 ÷ 100 = 50%. Using markup when you mean margin leads to systematic underpricing — the gap between the two grows as the percentage rises.
Use the formula: Selling Price = Cost ÷ (1 − Margin% ÷ 100). For example, cost = 100, target gross margin = 33.33%: Selling Price = 100 ÷ (1 − 0.3333) = 100 ÷ 0.6667 = 150. The Selling Price from Margin mode in this calculator applies this formula automatically and shows both margin and markup in the result.
Gross margin is always calculated on the selling price (revenue), not the cost. The formula is: Gross Margin % = (Gross Profit ÷ Revenue) × 100. This is different from markup, which is calculated on cost. If someone says their gross margin is 40%, they mean 40% of the selling price is profit — not 40% of the cost.
GST should be excluded from both revenue and COGS before calculating gross margin. If you are GST-registered, the GST collected on sales passes through to the tax authority and is not part of your income. Similarly, GST paid on purchases is recoverable as an input tax credit and should not inflate your COGS. Always use net (GST-exclusive) figures for margin calculations. Use the GST Calculator to extract the net price from any GST-inclusive figure before running a margin calculation.
The gross profit margin ratio is used to evaluate pricing efficiency, compare product profitability, benchmark against competitors, and track business health over time. Investors and lenders review it as the first profitability indicator on an income statement. A declining gross margin across consecutive periods signals rising COGS or pricing pressure that is eroding the business's ability to cover fixed costs from each sale.
Next step: Use the Break-even Calculator to see how your margin affects break-even — the exact sales volume your business needs before profit begins.
Comments and FeedbackFacing an issue with this tool? Share a quick comment so we can improve it.