Overview

Effortlessly determine your margin, profit, revenue, or cost with our versatile calculator app. Perfect for all your financial calculations.

Business owners, resellers, freelancers and students use this tool to answer pricing questions such as "what should I charge to keep a 40% margin?" or "what share of each sale do I actually keep?". Choose which two figures you already know (cost and revenue, cost and margin, revenue and margin, or cost and profit), and it fills in the rest. Margin is profit as a share of the selling price, which is the figure most companies report and the one lenders and investors compare. Knowing it helps you set prices, check whether a discount still leaves room for profit, and compare products on equal terms.

Formula and example

Profit=Revenue−Cost\displaystyle \text{Profit} = \text{Revenue} - \text{Cost}
Margin=ProfitRevenue×100\displaystyle \text{Margin} = \frac{\text{Profit}}{\text{Revenue}} \times 100
Revenue=Cost1−Margin÷100\displaystyle \text{Revenue} = \frac{\text{Cost}}{1 - \text{Margin} \div 100}
Profit=Margin100×Revenue\displaystyle \text{Profit} = \frac{\text{Margin}}{100} \times \text{Revenue}

Where:

Cost
— What you pay to produce or buy the item, in dollars.
Revenue
— The selling price or total sales amount, in dollars; it is found from cost and margin when you choose Cost and margin.
Profit
— The amount left after subtracting cost from revenue, or margin times revenue when you choose Revenue and margin.
Margin
— Profit as a percentage of revenue, entered as a number below 100 when it is one of your known values.

Worked example

You choose Cost and revenue and enter a cost of $60 and revenue of $100 (the calculator's default inputs).

  1. Profit

    $100−$60=$40\displaystyle \$100 - \$60 = \$40
  2. Margin

    $40$100×100=40%\displaystyle \frac{\$40}{\$100} \times 100 = 40\%
  3. Check with Cost and margin

    $601−40÷100=$600.6=$100\displaystyle \frac{\$60}{1 - 40 \div 100} = \frac{\$60}{0.6} = \$100

Result

The calculator shows a Margin of 40%, with Cost $60.00, Revenue $100.00 and Profit $40.00. Choosing Cost and margin with a $60 cost and a 40% margin gives back the same $100 revenue.

FAQs

What is the difference between margin and markup?

Margin is profit divided by the selling price, while markup is profit divided by cost. An item that costs $60 and sells for $100 has a 40% margin ($40 ÷ $100) but a 66.67% markup ($40 ÷ $60). This calculator reports margin.

How do I calculate the selling price from cost and margin?

Divide the cost by one minus the margin as a decimal: Price = Cost ÷ (1 − Margin). For a $60 cost and a 40% margin, the price is $60 ÷ 0.6 = $100. Multiplying $60 by 1.4 instead gives $84, which is a 40% markup and only about a 28.57% margin.

How do I convert markup to margin?

Use Margin = Markup ÷ (1 + Markup), with both as decimals. A 50% markup gives 0.5 ÷ 1.5 = 33.33% margin, and a 100% markup (doubling the cost) gives a 50% margin. Going the other way, Markup = Margin ÷ (1 − Margin).

Can a profit margin be 100% or higher?

No. A 100% margin would mean the item cost nothing, so the calculator requires a margin below 100% when margin is one of your known values. Markup has no such limit; a $10 item sold for $40 has a 300% markup but a 75% margin.

What is a good profit margin?

There is no single answer, because typical margins differ widely between industries and between gross and net figures. Compare your result with your own past periods and with published benchmarks for your sector. Even a small change matters: on $100,000 of revenue, moving from a 30% to a 35% margin adds $5,000 of profit.

Is this gross margin or net margin?

It depends on what you enter as cost. Enter only the direct cost of the goods sold to get gross margin, or include overheads such as rent, wages and taxes to get net margin. The math is the same: profit ÷ revenue × 100.

How to use

Pick the two values you know, enter them, and read the margin, cost, revenue and profit together.

  1. Choose what you know in I knowSelect Cost and revenue, Cost and margin, Revenue and margin, or Cost and profit. Only the matching input fields are shown.
  2. Enter the CostType what the item costs you in dollars, for example 60 for a product you buy at $60. Skip this step if you chose Revenue and margin.
  3. Enter the Revenue, Margin (%) or ProfitType the second known value: the selling price in dollars (for example 100), the target margin as a percentage below 100 (for example 40), or the profit in dollars (for example 15). Amounts accept up to 2 decimal places.
  4. Read the margin and the other resultsThe highlighted Margin is profit as a percentage of revenue. Below it, Cost, Revenue and Profit are filled in; compare the margin against your target or past results, and remember it is not the same as markup on cost.

Assumptions

  • Margin means profit divided by revenue (selling price); markup on cost is not calculated.
  • Inputs must be zero or positive amounts with up to 2 decimal places, so a loss can only be shown by entering a cost higher than revenue, which produces a negative margin.
  • Taxes, discounts, returns and overheads are only included if you add them into the cost or revenue figures yourself.
  • Revenue cannot be zero, because margin divides profit by revenue; with Cost and profit, both cannot be zero, and the calculator shows an error instead of a result.

Explore more