Profitability & Pricing

Profit Margin Calculator

Calculate gross, operating and net margin — and find the price you need to hit a target margin.

$
$

Direct costs of producing what you sell — materials, direct labour, shipping in.

$

Rent, salaries, software, marketing and other overhead not counted in COGS.

Target-margin pricing
$
%
Gross Profit Margin
Gross profit
Operating profit
Operating margin
Markup on cost (not the same as margin)
COGS as % of revenue
Operating expenses as % of revenue
Price needed to hit your target margin Implied markup on cost:

    Estimates for planning only. Margin is measured against revenue; markup is measured against cost — they are different numbers. This tool does not account for taxes, interest, depreciation, or one-off items, so operating margin is not the same as net margin after tax.

    Free Profit Margin Calculator

    Revenue is vanity, profit is sanity. This free profit margin calculator turns three numbers — revenue, cost of goods sold, and operating expenses — into the margins that actually tell you whether your business works: gross margin, operating margin, and the markup you are charging on cost. It also solves the question every owner eventually asks: what price do I need to charge to hit a target margin?

    It runs entirely in your browser, requires no sign-up, and nothing you type leaves your device.

    Gross, Operating and Net Margin

    Businesses have several margins, and they answer different questions. Each one strips away another layer of cost.

    • Gross margin = (Revenue − COGS) ÷ Revenue. It measures how profitable the thing you sell is, before any overhead. A weak gross margin is a pricing or sourcing problem, and no amount of cost-cutting elsewhere will fix it.
    • Operating margin = (Revenue − COGS − Operating expenses) ÷ Revenue. It measures whether the whole operation — rent, salaries, software, marketing — pays for itself.
    • Net margin goes one step further and subtracts interest, taxes and one-off items. This calculator stops at operating margin, which is the number you can actually control month to month.

    Markup Is Not Margin

    This is the single most expensive misunderstanding in small business pricing. Margin is a share of revenue. Markup is a share of cost. They are always different numbers, and markup is always the larger one.

    Buy an item for $50 and sell it for $75. Your markup is 50% ($25 ÷ $50 cost). Your margin is only 33.3% ($25 ÷ $75 revenue). An owner who wants a 40% margin and applies a 40% markup will land at a 28.6% margin and quietly under-earn on every sale.

    To convert: margin = markup ÷ (1 + markup), and markup = margin ÷ (1 − margin). The calculator shows both figures side by side so you never confuse them again.

    A Worked Example

    Take a business with $250,000 of revenue, $150,000 of cost of goods sold, and $60,000 of operating expenses.

    • Gross profit: $250,000 − $150,000 = $100,000, a 40% gross margin.
    • Operating profit: $100,000 − $60,000 = $40,000, a 16% operating margin.
    • Markup on cost: $100,000 ÷ $150,000 = 66.7% — far higher than the 40% margin, as always.

    COGS eats 60% of every revenue dollar and overhead another 24%, leaving 16 cents of operating profit. Push gross margin up five points and operating profit jumps by more than 30% — which is why pricing usually beats penny-pinching.

    Pricing for a Target Margin

    Most owners price forwards: take the cost, add something, hope. Price backwards instead. If you know your unit cost and the margin you need, the price falls out of one formula: price = cost ÷ (1 − margin).

    A $25 unit cost at a 40% target margin needs a price of $41.67 — which is a 66.7% markup on cost. Notice you can never reach a 100% margin: as the target approaches 100%, the required price runs off to infinity, because margin is a share of a price that keeps growing.

    Pair this with the break-even calculator to check how many units you must sell at that price before the fixed costs are covered.

    Frequently Asked Questions

    How do you calculate profit margin?

    Gross margin is (Revenue − COGS) ÷ Revenue × 100. Operating margin subtracts operating expenses as well: (Revenue − COGS − Operating expenses) ÷ Revenue × 100. On $250,000 of revenue with $150,000 of COGS and $60,000 of overhead, gross margin is 40% and operating margin is 16%.

    What is the difference between markup and margin?

    Margin is profit as a share of the selling price; markup is profit as a share of the cost. Buying at $50 and selling at $75 is a 50% markup but only a 33.3% margin. Markup is always the bigger number. Convert with margin = markup ÷ (1 + markup), or markup = margin ÷ (1 − margin).

    What price do I need for a target profit margin?

    Divide your unit cost by one minus the target margin: price = cost ÷ (1 − margin). A $25 cost at a 40% target margin needs a $41.67 price. A 100% margin is mathematically impossible — the required price becomes infinite.

    What is a good profit margin for a small business?

    It varies enormously by industry. Software and services often run gross margins above 70%, retail and e-commerce commonly sit between 20% and 50%, and grocery or contracting can be far thinner. Operating margins around 10–20% are healthy for many small businesses. Compare against your own industry, not a universal benchmark.

    Why is my profit margin negative?

    A negative gross margin means your cost of goods sold exceeds revenue — you lose money on every sale, and volume makes it worse. A positive gross margin with a negative operating margin means the product works but overhead is too heavy for your current revenue. The two problems have completely different fixes.

    Related Articles

    ← Browse all free finance tools