Free Calculator

Profit Margin Calculator

Instantly calculate your profit margin, markup percentage, and projected earnings. Enter your cost and selling price — results update in real time.

Enter your cost and selling price to instantly see your profit margin, markup percentage, and projected earnings.

$
$

How to Use the Profit Margin Calculator

1
Enter Your Prices

Choose your currency from 10 options, then enter your cost price and selling price.

2
Add Volume (Optional)

Enter the number of units you sell per month to see monthly and annual profit projections.

3
Review Your Margins

See your profit, margin %, markup %, and cost as a percentage of selling price — all auto-calculated.

Profit Margin Calculator Example

Let's walk through a real-world example. Suppose you source a product for $15.00 and sell it for $39.99. Here's the full breakdown:

Cost Price$15.00
Selling Price$39.99
Profit$24.99
Profit Margin62.5%
Markup166.6%
Cost as % of Selling Price37.5%

That means 62.5 cents of every dollarin revenue is profit before operating expenses. At 100 units per month, that's $2,499/month or $29,988/year in gross profit.

Margins at Different Price Points

Here's how the same $15 cost product performs at different selling prices:

Selling PriceProfitMargin %Markup %Annual (100 units/mo)
$25.00$10.0040.0%66.7%$12,000/year
$29.99$14.9950.0%99.9%$17,988/year
$39.99$24.9962.5%166.6%$29,988/year
$49.99$34.9970.0%233.3%$41,988/year
$59.99$44.9975.0%300.0%$53,988/year

Increasing your selling price from $25 to $39.99 — a 60% increase — nearly triples your profit margin from 40% to 62.5%. Small price adjustments can have an outsized impact on profitability.

How Profit Margin Is Calculated

Understanding the difference between margin and markup is essential for pricing products correctly. Here are the two key formulas:

%
Profit Margin %

The percentage of your selling price that is profit. This is the metric most analysts and accountants prefer.

Margin = (Profit ÷ Selling Price) × 100

A 50% margin means half of every dollar earned is profit.
Example:($25 profit ÷ $50 selling) × 100 = 50% margin.

Markup %

The percentage added on top of your cost to set the selling price. Commonly used for day-to-day pricing.

Markup = (Profit ÷ Cost Price) × 100

A 100% markup means you doubled the cost to set the price.
Example:($25 profit ÷ $25 cost) × 100 = 100% markup.

Profit Margin vs. Markup

Margin and markup both describe profitability, but they use different bases for the calculation. Confusing the two is one of the most common pricing mistakes in ecommerce. A 50% markup is notthe same as a 50% margin — it's actually only a 33.3% margin.

When to Use Margin

Use margin for financial reporting, comparing profitability across products, evaluating business health, and communicating with investors or accountants. Margin is based on revenue.

When to Use Markup

Use markup when setting prices, negotiating with suppliers, or comparing wholesale vs. retail pricing. Markup is based on cost, making it intuitive for pricing decisions.

Common Conversion Gotchas

A 50% markup = 33.3% margin. A 100% markup = 50% margin. A 200% markup = 66.7% margin. Markup is always a larger number than margin for the same product.

Industry Standards

Retail apparel: 50-60% margin. Electronics: 10-20% margin. Food & beverage: 30-40% margin. Luxury goods: 60-80% margin. SaaS products: 70-90% margin.

Common Pricing Mistakes

Pricing your products correctly is critical to ecommerce success. Avoid these common mistakes:

  • Confusing margin with markup— A 50% markup only gives you a 33.3% margin. If you target a 50% margin but apply a 50% markup, you'll underprice every product and erode your profitability.
  • Ignoring all costs — Your cost price should include not just the product cost, but also shipping, packaging, transaction fees, and returns. A $15 product might actually cost you $22 after fulfillment and payment processing.
  • Racing to the bottom on price — Competing purely on price erodes margins for everyone. Instead, differentiate on value, branding, or customer experience to justify higher prices.
  • Not testing price points — Many sellers set a price once and never revisit it. A/B testing different price points can reveal that customers are willing to pay more than you assumed, directly boosting your margin.
  • Forgetting about discounts in margin math — If you frequently run 20% off sales, your effective margin is much lower than your listed margin. Calculate your margins at the discounted price, not the full price.

Tips to Improve Your Profit Margin

Whether you're just starting out or looking to optimize an established store, these strategies can help you increase profitability:

  • Negotiate with suppliers — Even small reductions in cost price (5-10%) can significantly increase your margin. Order in bulk, build long-term relationships, or source from multiple suppliers to get competitive pricing.
  • Bundle products together — Bundling increases average order value and allows you to set a higher total price. Customers perceive bundles as better value, even when your per-unit margin is higher.
  • Reduce return rates — Returns eat directly into your margin. Improve product descriptions, add sizing guides, use high-quality photos, and set clear expectations to minimize returns.
  • Optimize shipping costs— Negotiate carrier rates, use regional fulfillment centers, and consider flat-rate shipping that's baked into the product price. Every dollar saved on shipping goes straight to your margin.
  • Increase perceived value — Better packaging, brand storytelling, and customer service can justify premium pricing without increasing your costs. A $2 upgrade in packaging might support a $10 price increase.
  • Upsell and cross-sell — High-margin accessories and add-ons can dramatically improve your blended margin. A phone case with 80% margin improves the overall margin on a phone sale with 15% margin.
  • Review pricing regularly — Costs, competition, and demand change over time. Review your pricing quarterly and adjust margins based on current data rather than assumptions.

Frequently Asked Questions

What is the difference between profit margin and markup?
Profit margin is the percentage of the selling price that is profit (Profit ÷ Selling Price × 100). Markup is the percentage of the cost price that is added as profit (Profit ÷ Cost Price × 100). For example, if a product costs $10 and sells for $20, the margin is 50% but the markup is 100%. They describe the same profit from different perspectives.
What is a good profit margin for ecommerce?
A good gross profit margin for ecommerce varies by industry. Online retailers typically aim for 20-50% gross margins. Apparel and accessories often see 40-60%, electronics 10-20%, and handmade or niche products 50-80%. Net profit margins (after all expenses) of 10-20% are considered healthy for most ecommerce businesses.
How do I calculate profit margin in Excel?
In Excel, use the formula =(Selling Price - Cost Price) / Selling Price * 100. For example, if cell A1 has the cost ($15) and B1 has the selling price ($39.99), enter =(B1-A1)/B1*100 in cell C1 to get the margin percentage (62.49%). Format the cell as a percentage for cleaner display.
Is this calculator free to use?
Yes, 100% free. No sign-up, no email, no account needed. Use it as many times as you like to calculate margins for any product.
How do I convert markup to margin?
To convert markup to margin, use the formula: Margin = Markup / (1 + Markup). For example, a 100% markup (1.00) equals a 50% margin (1.00 / 2.00 = 0.50). A 50% markup (0.50) equals a 33.3% margin (0.50 / 1.50 = 0.333).
What is the formula for profit margin?
Profit Margin (%) = ((Selling Price - Cost Price) / Selling Price) × 100. This tells you what percentage of the selling price is actual profit. For example, selling at $40 with a $15 cost gives a margin of ($25 / $40) × 100 = 62.5%.
What currencies does the calculator support?
We support 10 major currencies: USD, EUR, GBP, INR, CAD, AUD, JPY, SGD, AED, and BRL. Select yours from the dropdown before entering your cost and selling prices.
Should I price based on margin or markup?
Most financial analysts and accountants prefer margin because it shows what portion of revenue is profit. Markup is more intuitive for setting prices since you add a percentage to your cost. Use margin for financial analysis and reporting, and markup for day-to-day pricing decisions. This calculator shows both so you can work with whichever you prefer.