Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Profit Margin Calculator

Profit Margin Calculator

Calculate profit margin, markup, and selling price from cost and revenue. Supports gross, operating, and net margin types.

What is a Profit Margin Calculator?

A profit margin calculator helps you determine how much profit you earn relative to your revenue or cost. Whether you're a business owner pricing products, a freelancer setting rates, or an e-commerce seller analyzing profitability, this tool gives you instant insight into your financial performance.

Margin vs. Markup: What's the Difference?

One of the most common points of confusion in business is the difference between margin and markup:

Profit Margin

Percentage of Revenue

(Revenue - Cost) / Revenue × 100

  • Calculated from selling price
  • Used in financial reporting
  • Example: $100 sale, $60 cost = 40% margin
Markup

Percentage of Cost

(Revenue - Cost) / Cost × 100

  • Calculated from cost price
  • Used in day-to-day pricing
  • Example: $100 sale, $60 cost = 66.7% markup
Key Insight: The same profit can be expressed two different ways. Markup percentage is always higher than margin percentage for the same transaction.

Three Types of Profit Margin

This calculator supports three margin types to give you a complete picture of your profitability:

Gross Margin

Revenue minus cost of goods sold (COGS). The simplest and most commonly used measure for product profitability.

Operating Margin

Gross profit minus operating expenses (rent, salaries, utilities). Shows how efficiently you run your business operations.

Net Margin

Operating profit minus taxes and other expenses. The bottom line — what you actually keep after all costs.

How to Use the Profit Margin Calculator

Mode 1: Calculate Margin

Use this mode when you already know your cost and selling price, and want to find out your profit margin and markup.

1

Enter Cost

Input what you paid for the product or service — your direct cost of goods sold.

2

Enter Revenue

Input your selling price — what you charge the customer for the product or service.

3

View Results

The calculator instantly shows your Profit Margin %, Markup %, and Profit amount with visual breakdown.

Mode 2: Set Price

Use this mode when you know your cost and want to determine the right selling price based on a target margin or markup.

1

Switch Mode

Click the Set Price tab to change from analysis mode to pricing mode.

2

Enter Cost

Input your product or service cost — the foundation for your pricing calculation.

3

Choose Calculation Type

Use the toggle to select whether to set by Margin (% of revenue) or Markup (% of cost).

4

Set Target Percentage

Enter your desired percentage manually, or click a quick preset button (10%, 20%, 30%, 50%, 75%, 100%) for instant calculation.

5

Get Selling Price

The calculator displays the required Selling Price, along with profit amount and the corresponding margin/markup values.

Adding Expenses

For a more accurate picture of your true profitability, switch from Gross to Operating or Net margin type:

Operating Margin

Add your operating expenses to see profit after business costs:

  • Rent and utilities
  • Salaries and wages
  • Marketing expenses
  • Administrative costs

Net Margin

Add both operating expenses and additional costs for bottom-line profit:

  • All operating expenses
  • Taxes and fees
  • Interest payments
  • Other non-operating costs

Batch Calculation

Enter a Quantity greater than 1 to see the total revenue, total cost, and total profit for multiple units. This is particularly useful for:

  • Analyzing bulk orders and wholesale pricing
  • Calculating inventory-level profitability
  • Planning production runs and batch manufacturing
  • Evaluating volume discounts and their impact on margins

Features

Two Calculation Modes

Calculate Margin lets you analyze existing pricing by entering cost and revenue. Set Price helps you plan pricing by entering cost and your target margin or markup percentage.

Gross, Operating, and Net Margins

Go beyond basic gross margin. Add operating expenses and taxes to calculate operating and net profit margins, giving you a complete view of your actual profitability.

Margin and Markup Toggle

In Set Price mode, switch between setting a target margin (percentage of revenue) or markup (percentage of cost). The calculator automatically shows both values regardless of which you set.

Visual Breakdown Bar

A color-coded bar visually shows how your revenue is split between cost, expenses, and profit. See at a glance whether your margins are healthy and identify areas for improvement.

Quick Preset Buttons

Common margin/markup percentages (10%, 20%, 30%, 50%, 75%, 100%) are available as one-click presets in Set Price mode for fast pricing decisions without manual calculation.

Batch Quantity

Enter a quantity to instantly see total revenue, total cost, and total profit across multiple units — useful for order-level or inventory-level analysis.

Currency Support

The calculator auto-detects your local currency and formats numbers accordingly. Use the currency picker to switch between currencies at any time for international pricing.

Frequently Asked Questions

What is a good profit margin?

It varies significantly by industry and business model. Here are typical net margin ranges:

Retail businesses 2-5%
Restaurants 3-6%
Professional services 10-20%
Software companies 20-30%+

A "good" margin depends on your industry, business model, and growth stage. Use this calculator to compare your margins against industry benchmarks and identify opportunities for improvement.

Why is my margin different from my markup?

Margin and markup measure the same profit from different perspectives:

  • Margin is profit as a percentage of revenue (the selling price)
  • Markup is profit as a percentage of cost (what you paid)

The markup percentage is always higher than the margin percentage for the same transaction because the denominator (cost) is smaller than revenue.

Example: A 50% markup equals a 33.3% margin. If you buy for $100 and mark up 50%, you sell for $150. Your $50 profit is 50% of cost but only 33.3% of the $150 selling price.

When should I use margin vs. markup?

Use Margin

Financial Analysis

  • Financial reporting and statements
  • Analyzing overall business performance
  • Comparing profitability across products
  • Industry benchmarking
  • Investor presentations
Use Markup

Day-to-Day Pricing

  • Setting product prices quickly
  • Retail and wholesale pricing
  • Calculating how much to add to cost
  • Simple pricing rules for staff
  • Quick mental calculations

What's the difference between gross, operating, and net margin?

Each margin type reveals different aspects of your business profitability:

1

Gross Margin

Only considers the direct cost of goods sold (COGS). Shows product-level profitability before any business expenses. Formula: (Revenue - COGS) / Revenue

2

Operating Margin

Subtracts operating expenses like rent, salaries, utilities, and marketing. Shows how efficiently you run your business operations. Formula: (Revenue - COGS - OpEx) / Revenue

3

Net Margin

Subtracts everything including taxes, interest, and other non-operating costs. This is your true bottom-line profit — what you actually keep. Formula: (Revenue - All Costs) / Revenue

Can margin be negative?

Yes. A negative margin means you're selling below cost — operating at a loss. This can happen in several scenarios:

  • Promotional sales — Temporary loss leaders to attract customers
  • Clearance events — Liquidating old inventory below cost
  • Market penetration — Initial pricing to gain market share
  • Competitive pressure — Forced to match competitor pricing
Important: While temporary negative margins can be strategic, sustained negative margins indicate a serious pricing or cost problem that will eventually lead to business failure.

Why can't margin be 100% or higher?

A 100% margin would mean zero cost, which is theoretically impossible for physical products or services that require resources.

Here's why mathematically:

  • Margin formula: (Revenue - Cost) / Revenue × 100
  • For 100% margin: (Revenue - Cost) / Revenue = 1
  • This means: Revenue - Cost = Revenue
  • Therefore: Cost = 0
Calculator behavior: In Set Price mode, entering a margin of 100% or above shows "—" because no finite selling price can achieve it. The maximum practical margin approaches (but never reaches) 100% as you increase markup infinitely.

In contrast, markup can exceed 100% because it's calculated from cost. A 200% markup means you're charging 3× your cost (cost + 200% of cost).

$
$
%
$
$
Profit Margin
0%
Profit
$0
Markup
0%
Selling Price
$0
Total Revenue $0
Total Cost $0
Total Profit $0
Breakdown
Cost 100% Expenses 0% Profit 0%
Margin is % of revenue, Markup is % of cost. E.g. cost $60, price $100: margin = 40%, markup = 66.7%.
Use Calculate Margin to analyze existing products, and Set Price to plan new pricing
Switch between Margin and Markup toggle to see how each affects your selling price
Select Operating or Net margin type to include operating expenses and taxes
Enter a quantity greater than 1 to see total revenue, cost, and profit
Use the currency picker to switch between currencies
All calculations are done locally in your browser
Want to learn more? Read documentation →
1/7
Can't find it? Build your own tool with AI
Start typing to search...
Searching...
No results found
Try searching with different keywords