UtilityKit

500+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.

Profit Margin Calculator

Calculate gross margin, markup, and profit

About Profit Margin Calculator

Gross margin and markup are the two most important profitability ratios in retail, e-commerce, and product businesses — and they are frequently confused. Margin is profit divided by selling price; markup is profit divided by cost. The same $20 profit on a $40 cost item represents a 50% markup but only a 33.33% margin. This calculator handles all three modes in one interface: find the margin and markup from a known cost and price; calculate the price you need to set to hit a target margin on a given cost; or work out the maximum cost you can incur to reach a target margin at a set price. Absolute profit per unit and total profit for a given quantity are always shown alongside the percentage figures. Optional tax handling lets you exclude sales tax from the revenue base before calculating margin, which is important when comparing margins across tax jurisdictions.

Why use Profit Margin Calculator

Margin and Markup — Both at Once

Gross margin (profit ÷ price) and markup (profit ÷ cost) are always displayed together so you never confuse the two. Finance teams typically speak in margin; retail buyers typically speak in markup — this tool bridges both.

Reverse-engineer the Right Price

Enter your cost and a target margin percentage to instantly get the selling price you need to charge. Eliminates the common error of setting price by adding a markup percentage and assuming it achieves a margin target.

Absolute Profit per Unit

Alongside the percentages, the calculator always shows the monetary profit per unit — the actual money you keep on each sale. Useful when comparing high-volume low-margin products against low-volume high-margin ones.

Bulk Profit Calculation

Enter a quantity to multiply profit per unit into total batch profit. Useful for evaluating a production run, a purchase order, or a retail season's buying plan in absolute P&L terms.

Tax-aware Margin

Revenue that includes sales tax or VAT overstates gross margin if tax is not removed. The tax toggle deducts the entered rate from revenue before the margin calculation, giving you the true pre-tax economic margin.

Currency-agnostic

All calculations are purely numerical — no currency selection is required. Works equally well for pricing in dollars, euros, pounds, rupees, or any other currency.

How to use Profit Margin Calculator

  1. Choose a mode: Find Margin (from cost and price), Find Price (from cost and target margin), or Find Cost (from price and target margin)
  2. Enter the two known values for the selected mode
  3. Optionally enter a sales tax rate to back tax out of the revenue before calculating margin
  4. Read gross margin percentage, markup percentage, and absolute profit per unit
  5. Enter a quantity to see total profit for a batch or production run
  6. Copy the selling price or margin figure for use in your listing, invoice, or financial model

When to use Profit Margin Calculator

  • When setting a price for a new product and you want to ensure it meets a specific gross margin target rather than just adding an arbitrary markup
  • When reviewing a supplier quote and you need to quickly verify that the proposed cost leaves enough margin at your standard selling price
  • When preparing a P&L or financial model and you need to calculate the gross margin on each SKU in your product catalogue
  • When comparing two products with different price points and cost structures to see which actually delivers more profit per unit
  • When a price increase or cost change occurs and you need to recalculate whether target margins are still being met
  • When evaluating a bulk purchase order and you want the total expected profit from the run at the current selling price

Examples

Find margin from cost and price

Input: Cost: $40, Selling price: $60

Output: Gross margin: 33.33% — Markup: 50% — Profit: $20/unit

Price to hit target margin

Input: Cost: ₹500, Target margin: 40%

Output: Required selling price: ₹833.33 — Markup: 66.67% — Profit: ₹333.33/unit

Bulk profit calculation

Input: Cost: $12, Selling price: $20, Quantity: 500 units

Output: Margin: 40% — Profit/unit: $8 — Total batch profit: $4,000

Tips

  • Margin = profit ÷ price; Markup = profit ÷ cost — they differ because the denominators differ. A 50% markup is only a 33.33% margin
  • When setting prices, always use the Price = Cost ÷ (1 − Target Margin) formula rather than adding a markup percentage and assuming the margin is equivalent
  • Bake every variable cost — packaging, payment fees, platform commission, return rate — into the 'cost' input before calculating margin; otherwise you will overstate profitability
  • Finance teams and investors speak in margin; retail buyers and merchandisers often speak in markup. Know which metric your audience expects and convert appropriately
  • Track margin per SKU or product line rather than blended overall margin — blended figures hide loss-leaders and high-performer products that should inform pricing strategy

Frequently Asked Questions

What is the difference between margin and markup?
Margin = (Price − Cost) ÷ Price × 100. Markup = (Price − Cost) ÷ Cost × 100. For a product that costs $40 and sells for $60, the margin is 33.33% and the markup is 50%. Margin is always lower than markup at the same profit, because margin divides by the larger denominator (price).
How do I price a product to hit a 40% margin?
Use the formula: Price = Cost ÷ (1 − Margin). For a 40% target margin on a $40 cost: Price = $40 ÷ (1 − 0.40) = $40 ÷ 0.60 = $66.67. Never add 40% to cost — that gives a 40% markup, which is only a 28.57% margin.
Why is a 50% markup not the same as a 50% margin?
A 50% markup on $40 cost gives a $60 price and a $20 profit. Margin on that is $20 ÷ $60 = 33.33%, not 50%. Markup and margin diverge because they use different denominators. The relationship is: Margin = Markup ÷ (1 + Markup).
How do I include shipping and packaging in cost?
Add all variable costs to the cost field: materials, direct labour, packaging, inbound shipping, payment processing fees, and any platform commission. The 'cost' in margin calculations should be the true cost to produce and deliver one unit, not just the production cost.
What is a healthy margin for retail versus SaaS?
Retail gross margins typically range from 30–60% depending on category — grocery is 25–30%, fashion can reach 60%. SaaS and software gross margins are often 70–90% because the variable cost of delivering software is low. These industry benchmarks vary widely; compare within your specific category.
Should margin be calculated on pre-tax or post-tax revenue?
Gross margin calculations use pre-tax revenue — the price before VAT or sales tax — because the tax component is collected on behalf of the government and is not the company's revenue. This calculator's tax toggle deducts the tax rate from the price before margin is calculated.
How do bulk discounts affect margin?
If you offer a volume discount, the selling price decreases while the cost remains the same, compressing the margin. Enter the discounted price in the calculator to see the resulting margin. Sustainable bulk pricing requires knowing the minimum price at which margin stays acceptable.
What is contribution margin?
Contribution margin = Revenue − Variable Costs. It measures how much each unit sold contributes toward covering fixed costs and then generating profit. It differs from gross margin in that variable costs may include items beyond COGS. Once contribution margin covers all fixed costs, additional sales generate pure profit.

Explore the category

Glossary

Gross Margin
The percentage of revenue remaining after subtracting the cost of goods sold. Gross Margin = (Revenue − COGS) ÷ Revenue × 100. It measures basic product profitability before operating expenses.
Markup
The percentage added to cost to arrive at the selling price. Markup = (Price − Cost) ÷ Cost × 100. Unlike margin, markup uses cost as the denominator, so the same profit dollar represents a higher markup percentage than margin percentage.
Cost of Goods Sold (COGS)
The direct variable costs attributable to producing or acquiring one unit of a product, including materials, manufacturing labour, and inbound shipping. COGS is the cost figure used in margin and markup calculations.
Selling Price
The price at which a product is offered to customers. Revenue equals selling price multiplied by units sold. Margin is calculated as a percentage of the selling price.
Profit
The monetary difference between selling price and cost per unit: Profit = Price − Cost. Expressed as a percentage of price it is the margin; as a percentage of cost it is the markup.
Break-even Point
The sales volume at which total revenue equals total costs — fixed plus variable. Below break-even, the business incurs a loss; above it, a profit. Gross margin per unit determines how many units must be sold to cover fixed overhead.