Profit Margin Calculator — Gross, Net & Markup

Calculate profit margins, markups, and revenue instantly. Enter your cost and selling price to see gross margin, net margin, and markup percentage.

Your cost to source or make the product

What customers pay (including any discounts)

Enter your cost and selling price to see your profit margins

Example: Cost $10, Price $25

Profit Layers
1

Enter Cost and Selling Price

Input your product cost and the price you charge customers into the calculator fields.

2

Review Margin & Markup

Instantly see your gross margin, markup percentage, and absolute profit per unit.

3

Compare to Industry Benchmarks

Use the tables below to see how your margins stack up against industry averages.

4

Optimize Pricing

Adjust your selling price to achieve a healthier margin while remaining competitive.

How to Calculate Profit Margin

Profit margin measures how much of each dollar in sales translates to profit. It is calculated by dividing profit by revenue and multiplying by 100.

Gross Margin = ((Revenue - COGS) ÷ Revenue) × 100

Net Margin = (Net Income ÷ Revenue) × 100

Understanding the difference between gross and net margin is essential for business health. Gross margin tells you how profitable your products are before overhead. Net margin tells you how profitable your entire business is after all expenses. A business with a 50% gross margin but a 5% net margin has high product profitability but expensive operations.

Markup is often confused with margin, but they measure different things. Markup shows how much you add to your cost, while margin shows what percentage of the selling price is profit. Retailers who negotiate with suppliers often speak in markup, while investors and analysts prefer margin because it is comparable across companies of different sizes.

Common Mistakes

  • Using markup when you mean margin: A 50% markup is not a 50% margin. If you tell investors you have 50% margins when you actually have 50% markups, you are significantly overstating profitability.
  • Ignoring net margin: High gross margins can hide bloated operating expenses. Always track net margin to understand true business profitability.
  • Forgetting to update costs: Supplier prices, shipping rates, and platform fees change. Recalculate margins quarterly to catch creeping cost increases.

Profit Margins by Industry

IndustryAverage Gross MarginAverage Net Margin
Ecommerce20-40%5-15%
Retail20-50%2-8%
Software/SaaS70-90%15-30%
Restaurants60-70%3-9%
Grocery20-30%1-3%
Manufacturing25-35%5-10%
Pharmaceuticals70-80%15-25%
Advertising30-40%5-12%
Consulting50-70%15-25%
Construction15-25%2-6%
Healthcare40-60%8-15%
Transportation30-40%3-8%

Quick Reference: Margin vs Markup Conversion

Convert target margins into the markup you need to charge

Desired MarginRequired MarkupExample ($100 Cost)
10% Margin11.1% Markup$111.11 price
20% Margin25.0% Markup$125.00 price
30% Margin42.9% Markup$142.86 price
40% Margin66.7% Markup$166.67 price
50% Margin100.0% Markup$200.00 price
60% Margin150.0% Markup$250.00 price

Industry Applications

Profit margin analysis is essential in every industry that buys and sells. In ecommerce, sellers use margin calculators to evaluate product viability before adding items to their catalog. A product with a 10% gross margin might seem appealing at high volume, but after accounting for returns, advertising, and platform fees, the net margin could be negative. Smart sellers use margin targets as a filter for inventory decisions.

In restaurants and hospitality, menu engineering relies heavily on margin data. Chefs calculate the food cost of each dish and set prices to achieve target margins, often 60-70% for beverages and 30-40% for entrees. Low-margin items are either repriced, re-engineered with cheaper ingredients, or removed from the menu entirely.

SaaS and software companies track gross margins obsessively because their unit economics scale with volume. A SaaS product with an 80% gross margin and low customer acquisition cost is highly investable. These companies use margin calculators during pricing experiments to find the sweet spot between customer retention and revenue per user.

Even nonprofits and social enterprises need margin awareness. While their mission is impact, sustainability requires enough margin to cover operational costs. A fair-trade coffee brand, for example, must balance ethical sourcing premiums with a retail price that generates enough margin to fund growth. Margin calculators turn abstract pricing conversations into concrete, actionable numbers.

Advanced Tips

Track margin by product, not just in aggregate. Your overall 35% margin might hide the fact that half your catalog operates at 10% while the other half generates 60%. Use product-level margin analysis to double down on winners and discontinue losers.

Factor in customer acquisition cost (CAC) when evaluating net margin. A product with a 50% gross margin but a $40 CAC is less profitable than a product with a 30% gross margin and a $5 CAC. Unit economics matter more than headline margins.

Build a pricing cadence. Review costs and margins monthly for fast-moving businesses and quarterly for stable ones. Inflation, supply chain disruptions, and platform fee changes can silently erode margins if you do not monitor them. Combine this calculator with our Price Calculator to set prices that protect your bottom line.

Related Tools

Frequently Asked Questions

How do I calculate profit margin?

Profit Margin = ((Selling Price - Cost) ÷ Selling Price) × 100. For example, if you sell a product for $50 that costs $30: (($50 - $30) ÷ $50) × 100 = 40% margin.

What is a good profit margin?

Good profit margins vary by industry. Ecommerce typically aims for 20-40%. Retail stores often operate on 20-50% margins. Grocery stores have thin margins of 1-3%, while software can have 70-90% margins.

Is this profit margin calculator free?

Yes, our profit margin calculator is completely free to use with no signup required.

What is the difference between gross margin and net margin?

Gross margin measures profit after subtracting only the cost of goods sold (COGS) from revenue. Net margin subtracts all expenses, including operating costs, taxes, and interest, from revenue. Net margin gives a more complete picture of overall profitability.

How do I calculate markup percentage?

Markup Percentage = ((Selling Price - Cost) ÷ Cost) × 100. If a product costs $25 and sells for $40, the markup is (($40 - $25) ÷ $25) × 100 = 60%. Markup is based on cost, while margin is based on selling price.

Why is my margin lower than my markup?

Margin is always lower than markup when both are expressed as percentages because margin divides profit by the larger number (selling price), while markup divides profit by the smaller number (cost). A 50% markup equals only a 33.3% margin.

How can I improve my profit margin?

You can improve margins by reducing costs (negotiating with suppliers, improving efficiency), increasing prices (value-based pricing, premium positioning), or both. Cutting low-margin products and focusing on high-margin offerings also boosts overall profitability.

What is operating margin?

Operating margin measures profitability after deducting operating expenses like wages, rent, and utilities, but before interest and taxes. It shows how efficiently a company generates profit from its core business operations.

Do profit margins include taxes?

Gross profit margin does not include taxes. Net profit margin does include taxes, as it is calculated after all expenses including tax have been deducted from revenue. Always clarify which margin you are discussing in business conversations.

What is contribution margin?

Contribution margin is the revenue remaining after subtracting variable costs (like materials and direct labor). It shows how much revenue contributes to covering fixed costs and generating profit. It is especially useful for break-even analysis.