Skip to main content

Margin Calculator

Calculate gross profit margin, markup percentage, and optimal selling price from your item cost and revenue or target margin.

Pricing & Cost Inputs

$
$
%

Gross Profit Margin

40.00%

Gross Profit$40.00
Markup %66.67%
Selling Price$100.00
A $100.00 selling price on a $60.00 cost yields $40.00 gross profit (40.00% margin / 66.67% markup).
Discount Sensitivity (10% Off): Cutting price to $90.00 drops profit to $30.00 (33.33% margin)—requiring 33.3% more unit sales to earn the same total profit.

Revenue Split: Cost vs. Gross Profit

Cost: $60.00 (60.0%) Profit: $40.00 (40.0%)

How to Use This Margin Calculator

  1. Select a calculation mode: Cost + Revenue (find margin and markup), Cost + Margin % (find selling price), or Cost + Markup % (convert markup to margin and price).
  2. Enter your Item Cost (COGS) and the second known value.
  3. Test a Price Discount (%) to see how promotions affect profit per unit and required sales volume.

Interpreting Results & Common Mistakes

Gross margin measures profit as a percentage of the selling price, while markup measures profit as a percentage of cost. Because selling price is higher than cost on profitable items, your markup percentage is always higher than your gross margin percentage.

  • Pricing with markup when you want margin: Adding a 40% markup to a $60 cost produces an $84 price and only a 28.57% gross margin—not 40%. To achieve a 40% gross margin, you must divide cost by (1 − 0.40) to get $100.
  • Underestimating discount impact: A 10% price cut on a 40% margin product eliminates 25% of your gross profit dollars per unit, forcing you to sell 33.3% more units just to break even on total profit.

Margin vs. Markup Conversion Table

Gross Margin %Equivalent Markup %Price Multiplier (× Cost)Profit per $100 Sales
20.0%25.0%1.25×$20.00
25.0%33.3%1.33×$25.00
33.3%50.0%1.50×$33.33
40.0%66.7%1.67×$40.00
50.0%100.0%2.00×$50.00

Margin & Markup Formulas

Gross Profit = Revenue − Cost
Gross Margin (%) = (Gross Profit ÷ Revenue) × 100
Markup (%) = (Gross Profit ÷ Cost) × 100
Selling Price from Target Margin = Cost ÷ (1 − Margin % ÷ 100)
Selling Price from Markup = Cost × (1 + Markup % ÷ 100)

Worked Example

Scenario: A retailer buys a product for $60.00 and sells it for $100.00, then considers a 10% discount.

  1. Gross Profit: $100.00 − $60.00 = $40.00.
  2. Margin & Markup: Margin = ($40 ÷ $100) × 100 = 40.00%. Markup = ($40 ÷ $60) × 100 = 66.67%.
  3. After 10% Discount ($90.00): Profit drops to $30.00 (33.33% margin), requiring $40 ÷ $30 = 1.333× (33.3% more volume) to maintain total profit.

Key Pricing Terms

  • Cost of Goods Sold (COGS): The direct cost to purchase or manufacture the product being sold.
  • Gross Margin: The share of revenue retained after subtracting COGS, expressed as a percentage of revenue.
  • Markup: The percentage added on top of COGS to set the selling price.

Frequently Asked Questions

What is the difference between gross margin and markup?

Gross margin is profit divided by selling price, while markup is profit divided by cost. For example, a $60 item sold for $100 has a 40% gross margin but a 66.67% markup.

How do I calculate selling price for a 40% profit margin?

Divide your item cost by (1 − 0.40), which is 0.60. For a $60 cost, $60 ÷ 0.60 equals a $100.00 selling price.

Can gross margin ever be 100% or higher?

Only if your cost is $0. If your item has any positive cost, your gross margin is always strictly less than 100%, whereas markup can exceed 100%.

Why does a 10% discount hurt profit so much?

A 10% discount comes directly out of your profit while your cost stays fixed. On a 40% margin item, a 10% price cut reduces profit per unit by 25%.

Methodology, Sources & Limitations

Calculations use standard GAAP-aligned retail accounting definitions for gross profit, gross profit margin, and cost-plus markup.

Limitations & Disclaimer: Estimates exclude sales tax, payment processing fees, shipping, overhead, and operating expenses (which determine net profit margin rather than gross margin).

✓ Copied to Clipboard!