Simple online tools for developers, networking, text and conversions.

Calculators

Margin Calculator

Calculate profit margin from revenue and cost.

Tool

Use this margin calculator to calculate gross profit margin from revenue and cost. It is useful for pricing checks, sales analysis, and quick business calculations.

About this tool

Use this margin calculator to calculate gross profit margin from revenue and cost. It is useful for pricing checks, sales analysis, and quick business calculations.

Use margin calculator when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Enter revenue on the first line.
  2. Enter cost on the second line.
  3. Run the tool to calculate profit and margin.
  4. Review the result in the output area.

Examples

Example

Input

1000
700

Output

Revenue: 1000.00
Cost: 700.00
Profit: 300.00
Margin: 30.00%

Margin is calculated as profit divided by revenue.

Example

Input

50
30

Output

Revenue: 50.00
Cost: 30.00
Profit: 20.00
Margin: 40.00%

Useful for quick product profitability checks.

Common errors

Using cost first and revenue second.

Fix: Enter revenue first and cost second.

Using zero revenue.

Fix: Revenue must be greater than zero to calculate margin.

Confusing margin with markup.

Fix: Margin uses profit divided by revenue, while markup uses profit divided by cost.

FAQ

What does Margin Calculator do?

It calculates profit and profit margin from revenue and cost.

What is the margin formula?

Margin equals profit divided by revenue times 100.

How is margin different from markup?

Margin is based on revenue, while markup is based on cost.

Can I use decimals?

Yes. Revenue and cost can include decimals.

What happens if revenue is zero?

Margin cannot be calculated when revenue is zero.

Use cases

Related tools