Profit margin calculator: enter revenue and total cost to see profit, profit margin and markup side by side. Free margin and markup calculator on Nemin.io.

Free calculator

This free profit margin calculator from Nemin.io shows how much of your revenue you keep as profit. Enter your revenue and total cost to see your profit, profit margin and markup on cost, side by side.

It’s useful for pricing products and services, checking whether a project was worth it, or understanding the difference between margin and markup, which are often confused. Free, with no sign-up.

Profit Margin Calculator: Margin and Markup

Fill in the fields and click Calculate.

How it works

How the Nemin.io Profit Margin Calculator Works

  1. Profit = revenue − total cost
  2. Profit margin = profit ÷ revenue × 100
  3. Markup on cost = profit ÷ total cost × 100

Worked Example

A project brings in $15,000 and costs $5,000. Profit is $10,000, the profit margin is 66.67% and the markup is 200%. The same deal produces two very different-looking percentages, which is why it matters which one you use.

How to Use the Nemin.io Profit Margin Calculator

  1. Enter Revenue ($).
  2. Enter Total cost ($).
  3. Click Calculate margin to see your results instantly.
  4. Change one input at a time to compare scenarios, then click Reset to start again.

The Profit Margin Calculator runs entirely in your browser, so you can test as many scenarios as you like.

Margin vs Markup: What's the Difference?

Profit marginMarkup
FormulaProfit ÷ revenueProfit ÷ cost
AnswersHow much of each sale is profit?How much is added on top of cost?
Can exceed 100%?NoYes

A common pricing mistake is adding a 30% markup and expecting a 30% margin. A 30% markup gives only about a 23% margin.

Gross Margin vs Net Margin

Gross margin uses only the direct costs of delivering a product or service, such as materials or contractor fees. Net margin includes all business costs, including rent, software, salaries and taxes. Enter direct costs to see gross margin, or all costs to see net margin, and label your results so you compare like with like.

Example: Pricing for a Target Margin

To reach a target margin, divide your cost by (1 − target margin). Here is the price needed for an item that costs $70:

Target marginPrice neededProfit per saleEquivalent markup
20%$87.50$17.5025.00%
30%$100.00$30.0042.86%
40%$116.67$46.6766.67%
50%$140.00$70.00100.00%

Working backwards from a target margin is the most reliable way to avoid underpricing, especially when costs change.

Margin and Markup at Different Prices

With a total cost of $5,000, here’s how margin and markup compare at different revenue levels:

RevenueProfitProfit marginMarkup
$6,000.00$1,000.0016.67%20.00%
$7,500.00$2,500.0033.33%50.00%
$10,000.00$5,000.0050.00%100.00%
$15,000.00$10,000.0066.67%200.00%

Margin can never reach 100%, while markup can go far above it, which is why the two numbers should never be mixed up.

Who the Profit Margin Calculator Is For

  • Business owners pricing products and services
  • Freelancers checking whether projects are profitable
  • Ecommerce sellers comparing product margins
  • Agencies reviewing client profitability
  • Anyone confused by margin vs markup

How to Improve Your Profit Margin

  • Raise prices where your value supports it.
  • Reduce direct costs by negotiating with suppliers or improving processes.
  • Cut low-margin work that takes time without paying enough.
  • Bundle services to increase order value.
  • Track margins per product or client to find what’s really profitable.

Using Margin to Set Prices

To price for a target margin, divide your cost by (1 − target margin). For example, a $70 cost with a 30% target margin needs a price of $100. The Nemin.io Agency Retainer Calculator uses the same approach for monthly retainers.

Key Terms Explained

  • Revenue: Total income from sales before costs.
  • Gross margin: Profit after direct costs, as a share of revenue.
  • Net margin: Profit after all costs, as a share of revenue.
  • Markup: Profit as a share of cost.
  • Cost of goods sold: The direct costs of producing what you sell.

Tips for Accurate Profit Margin Calculator Results

  • Decide whether you want gross or net margin before entering costs.
  • Use real costs from invoices and receipts.
  • Check margins per product or client, not just overall.
  • Never confuse a target margin with a markup.

Related Free Calculators

Margin tells you how profitable each sale is; break-even tells you how many sales you need. Try the Nemin.io Break-Even Calculator, the Nemin.io ROI Calculator and the Nemin.io Agency Retainer Calculator. All of them are free and work the same way as the Profit Margin Calculator, so you can move from one question to the next in seconds.

FAQs

Profit Margin Calculator FAQs

Yes. It’s free and runs in your browser.

Divide profit (revenue minus cost) by revenue and multiply by 100.

Margin compares profit to revenue; markup compares profit to cost.

Yes, if costs are higher than revenue.

It varies widely by industry and business model. Compare your margin over time and against similar businesses.

Use direct costs for gross margin or all costs for net margin, and be consistent.

No. A 50% markup on a $100 cost gives a $150 price and $50 profit, which is a 33.33% margin, because margin is profit divided by price, while markup is profit divided by cost.

Margin = markup ÷ (1 + markup). For example, a 25% markup is 0.25 ÷ 1.25 = 20% margin. To go the other way, markup = margin ÷ (1 − margin).

Divide your cost by (1 − target margin). For a $60 cost and a 40% target margin, the price is $60 ÷ 0.60 = $100.

No, as long as costs aren’t negative. Margin is profit as a share of revenue, and profit can’t be larger than revenue. Markup, on the other hand, can be well over 100%.

Health note: Nemin.io articles are for general information only and are not medical advice. Please talk to a doctor or qualified professional about your own health.