Profit Margin Calculator

Know your numbers. Calculate profit, margin, and markup — or find the right price.

$
$

How the Profit Margin Calculator Works

Enter your cost and selling price to instantly see three key business metrics: profit (the raw dollar amount you make), margin (profit as a percentage of selling price), and markup (how much you marked up the cost). Enable reverse mode to work backwards: enter your cost and target margin to find the required selling price.

Gross, Operating, and Net Margin: What Each Measure Tells You

Profit margin isn't a single number — it's a family of related metrics, each revealing a different layer of business health. Understanding the distinction goes a long way for interpreting financial statements, comparing businesses, and making pricing decisions.

  • Gross margin measures profitability after subtracting only the direct cost of goods sold (COGS) — the raw materials, manufacturing costs, or wholesale price of what you sold. It ignores rent, salaries, marketing, and other overhead. Formula: (Revenue − COGS) ÷ Revenue × 100. A high gross margin means the product itself is profitable; it doesn't mean the business is profitable.
  • Operating margin (also called EBIT margin) subtracts operating expenses — rent, utilities, staff salaries, depreciation — on top of COGS. It shows whether the core business operations are profitable before interest payments and taxes. Formula: Operating Income ÷ Revenue × 100. This is the metric that reveals whether a business's day-to-day operations generate money or consume it.
  • Net margin is the bottom line: profit after everything — COGS, operating expenses, interest on debt, and taxes. Formula: Net Income ÷ Revenue × 100. This is the most complete picture of profitability. A business can have a 60% gross margin and still have a near-zero or negative net margin if overhead and debt costs are high. This calculator computes gross margin by default, which is the most useful metric for product pricing decisions.

Healthy Margin Benchmarks by Industry

What counts as a good margin varies a lot by industry. Comparing your margin to a universal standard is meaningless — the relevant benchmark is always your sector. Here are typical gross margin ranges for common business types:

  • Software and SaaS: 70–85% gross margin. Software has near-zero marginal cost per additional user, making it one of the highest-margin business models when scaled.
  • Professional services (consulting, law, design): 30–60% gross margin. High human labour content means margin is tied directly to hourly rates and utilization — the percentage of billable hours worked.
  • E-commerce and retail products: 20–50% gross margin. Physical products carry shipping, storage, and return costs that compress margin compared to digital goods. Consumer electronics tend toward the lower end; cosmetics and branded apparel toward the higher end.
  • Food service and restaurants: 60–75% gross margin on food cost alone, but net margins are famously thin (3–9%) because of labour, rent, and waste. High gross margin doesn't mean high profitability in this industry — overhead is the constraint.

Pricing Strategies and Common Margin Mistakes

The most common margin mistake made by new businesses is confusing markup with margin. A 50% markup on a $20 cost gives a $30 selling price, but many owners mistakenly believe this means a 50% margin — it's actually 33.3%. When that owner sets a target price using 'I want a 50% margin,' they consistently underprice and end up with less profit than intended. Always calculate margin from the selling price, not from the cost.

A second common mistake is ignoring hidden costs when calculating margin. If you sell a product for $50 and it cost $25 to produce, your gross margin is 50%. But if payment processing fees (2.9%), packaging ($1.50), and shipping ($4.00) aren't included in your cost calculation, your real margin is closer to 30%. Always build a complete cost base — including fulfilment, transaction fees, and a return rate allowance — before setting a final price.

On the pricing strategy side, cost-plus pricing (add a standard markup to cost) is the simplest approach but often leaves money on the table in markets where customers will pay based on perceived value rather than your costs. Value-based pricing — setting the price based on what the outcome is worth to the buyer — tends to produce higher margins for products with clear, measurable benefits. Use this calculator's reverse mode: start from your target margin, enter your true cost, and let the tool tell you the minimum price you need to charge.

Industry benchmarks and reverse pricing in one place

Eight industry presets are built in, each with a typical gross margin range: Beauty 60–80%, Jewelry 50–75%, Fashion 50–65%, SaaS 70–80%, Ecommerce 40–50%, Restaurant 25–35%, Electronics 15–25%, Grocery 2–5%. Select your sector and a colour-coded banner tells you where your current margin sits: green if you're within range, yellow if you're below, red if you're below half the lower bound. Not a verdict — just a quick read against what's typical for your type of business.

Reverse mode flips the direction: enter your cost and the margin percentage you need to hit, and the calculator outputs the selling price required to get there. Useful when you know your target margin from investor expectations or a franchise agreement and need to work backwards to set prices. The benchmarks update the comparison banner in reverse mode too — so you can see whether the price you'd need to charge is realistic for your market before committing. What's not here: operating cost fields, tax calculators, or multi-product blended margin.

Frequently Asked Questions

What's the difference between margin and markup?
Margin and markup both measure profitability, but from different reference points. Margin = (Profit / Selling Price) × 100 — it tells you what percentage of your revenue is profit. Markup = (Profit / Cost) × 100 — it tells you how much you marked up your cost to arrive at the price. A 50% markup on a $10 cost gives a $15 price, but the margin on that sale is only 33%. This distinction matters when setting prices.
What is a good profit margin?
It depends heavily on the industry. Grocery retail typically operates at 1–3% net margin. Software and SaaS companies often achieve 20–40% or higher. Service businesses like consulting can reach 30–50%. As a general benchmark: under 5% is thin, 10–20% is healthy for most product businesses, and anything above 20% is strong. Always compare to industry peers rather than a universal standard.
Why can't I set a margin of 100% or more?
A margin of 100% would mean your cost is zero and your entire selling price is profit — mathematically possible but not a real business scenario. A margin above 100% is mathematically impossible because profit can't exceed the selling price. Markup, however, can be any positive number (a 200% markup simply means you tripled the cost).
How do I use the reverse mode to find the right selling price?
Enable the reverse toggle, enter your cost and the margin percentage you want to achieve, and the calculator outputs the selling price you need to charge. For example: cost $40, target margin 60% → required selling price $100. This is useful when you know your target margin (perhaps from industry benchmarks or investor expectations) and need to work backwards to set pricing.
What costs should I include when calculating my true cost?
For a physical product, your true cost should include: manufacturing or wholesale cost, inbound shipping, packaging, outbound shipping (if not charged separately to customers), payment processing fees (typically 2–3%), and an allowance for returns and defects (often 2–5% of revenue). For a service, include your labour cost at your effective hourly rate plus any software, tools, or subcontractor costs directly tied to delivering that service. Margins calculated on incomplete costs are systematically overstated.

You might also need

See all tools →

Complementary tools based on what you're doing