AllFreeCalculator

Profit Margin Calculator

Calculate profit margin, markup, and the selling price you need to hit your target margin.

What Is Profit Margin?

Profit margin is one of the most fundamental metrics in business finance. It measures how much of every dollar in revenue a company retains as profit after accounting for costs. Expressed as a percentage, profit margin provides an instant snapshot of a business's pricing efficiency and cost management.

There are several types of profit margin — gross, operating, and net — each subtracting progressively more expenses. This calculator focuses on gross profit margin, which considers only the direct cost of goods or services sold (COGS).

Profit Margin Formula

The standard gross profit margin formula is:

Margin=RevenueCostRevenue×100

For example, if you sell a product for $100 and it costs $60 to produce, your profit is $40 and your margin is 40%.

Margin vs. Markup — What's the Difference?

These two terms are often confused but they measure different things:

MetricFormulaExample (Cost $60, Price $100)
Margin(Revenue − Cost) ÷ Revenue × 10040%
Markup(Revenue − Cost) ÷ Cost × 10066.67%

Margin can never exceed 100%, while markup can be any positive number. A 100% markup means you doubled your cost (50% margin). Understanding this distinction is critical for pricing strategy.

Understanding Reverse Mode

Sometimes you know the margin you want and need to calculate the selling price. The reverse formula is:

Price=Cost1(Margin %÷100)

For example, if your cost is $60 and you want a 40% margin: Price = $60 ÷ (1 − 0.40) = $100.

Why Profit Margin Matters

Profit margin serves multiple purposes in business decision-making:

  • Pricing strategy: Ensures your prices cover costs and generate adequate returns.
  • Competitive benchmarking: Comparing margins against industry averages reveals operational strengths or weaknesses.
  • Investor confidence: Higher and stable margins attract investors and improve valuations.
  • Break-even analysis: Knowing your margin helps calculate how many units you need to sell to cover fixed costs.

Industry Benchmarks

Average gross margins vary widely by sector:

  • Grocery / supermarkets: 25–30%
  • Retail clothing: 45–65%
  • Restaurants: 60–70% (food cost 30–40%)
  • Software / SaaS: 70–90%
  • Manufacturing: 25–35%
  • Professional services: 50–70%

These benchmarks help you gauge whether your pricing is competitive within your industry.

Common Mistakes to Avoid

  • Confusing margin with markup — a 50% markup is only a 33.3% margin.
  • Ignoring variable costs that change with volume (shipping, packaging, commissions).
  • Setting prices based on cost alone without considering perceived value and market positioning.
  • Forgetting that discounts erode margin disproportionately — a 10% discount on a 40% margin product cuts profit by 25%.

Improving Your Profit Margin

To increase margin without raising prices, focus on reducing costs: negotiate better supplier rates, reduce waste, automate processes, or shift to higher-margin product lines. Alternatively, improve perceived value through branding, bundling, or premium features to justify higher prices.

Frequently asked questions

What is profit margin?

Profit margin is the percentage of revenue that remains as profit after subtracting costs. It is calculated as (Revenue − Cost) ÷ Revenue × 100. A 40% margin means you keep $0.40 of every dollar earned.

What is the difference between margin and markup?

Margin is profit as a percentage of revenue (selling price), while markup is profit as a percentage of cost. A product bought for $60 and sold for $100 has a 40% margin but a 66.7% markup.

What is a good profit margin?

It varies by industry. Retail typically sees 2–5% net margins, software companies 20–40%, and luxury goods 50%+. Compare your margin to industry benchmarks rather than an absolute number.

How do I use reverse mode?

Reverse mode lets you enter your desired profit margin percentage and your cost, then calculates the selling price you need to charge to achieve that margin.

Does this calculator account for taxes and operating expenses?

This calculator computes gross profit margin — revenue minus direct costs. It does not subtract taxes, rent, salaries, or other operating expenses. For net margin, subtract all expenses from revenue first.

Related calculators