Finance calculators

Gross Profit Margin Calculator

Updated Jul 23, 2026 By Jehan Wadia
Rate Formulas
Configure Your Calculation
Tax-adjusted revenue = Revenue ÷ (1 + Tax Rate ÷ 100).
Enter Your Values
Results
Your Gross Profit Margin is Calculated
Your Markup is Calculated
Your Profit is Calculated
Your Revenue is Calculated
Your Cost is Calculated
Step-by-Step Solution
Revenue Breakdown

Introduction

Gross profit margin tells you how much money you keep from each dollar of sales after you pay for the goods you sold. It is one of the most important numbers in business. A high margin means you earn more on every sale. A low margin means most of your revenue goes to costs.

This gross profit margin calculator makes it easy to find your margin in seconds. Enter any two values you know — such as revenue and cost, or cost and markup — and the tool figures out the rest. It shows your gross profit margin percentage, markup percentage, total profit, and a full step-by-step breakdown of the math. You can also pick your currency, set decimal places, and add a tax rate if needed.

Whether you run a small shop or manage a large company, knowing your gross profit margin helps you set better prices, control costs, and grow your business. Use the calculator below to get started.

How to Use Our Gross Profit Margin Calculator

Enter any two values you know — such as revenue and cost — and this calculator will find your gross profit margin, markup, profit, and more in seconds.

Pick your first known value. Use the "I know my…" dropdown to choose the first piece of data you have. This can be revenue, cost, profit, gross profit margin %, or markup %.

Pick your second known value. Use the "…and my…" dropdown to choose a different second value. You must pick two different items for the math to work.

Choose your currency. Select USD, GBP, EUR, INR, JPY, CAD, or AUD from the currency dropdown. This sets the correct symbol for all money values.

Set your decimal places. Pick how many decimal places you want in your results, from 0 to 4.

Add tax if needed. Check the "Include Tax / VAT / GST" box if your revenue includes tax. Then type your tax rate as a percent. The calculator will remove the tax before it finds your margin. If you need to calculate tax amounts separately, try our sales tax calculator, VAT calculator, or GST calculator.

Type in your two values. Enter the numbers that match the two variables you picked above. The input labels and symbols update to match your choices.

Click "Calculate." The tool will show your gross profit margin, markup percentage, profit, revenue, cost, a step-by-step solution, and a bar chart that breaks down your revenue. Click "Clear" at any time to reset all fields and start over.

What Is Gross Profit Margin?

Gross profit margin tells you how much money a business keeps from each dollar of sales after paying for the goods it sold. It is shown as a percentage. A higher percentage means the business keeps more money from every sale. For a broader look at how margins work across different contexts, you can also explore our general margin calculator.

How to Calculate Gross Profit Margin

The formula is simple:

Gross Profit Margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100

Revenue is the total money earned from sales. Cost of goods sold (often called COGS) is what the business paid to make or buy the products it sold. The difference between these two numbers is your gross profit. When you divide that profit by revenue and multiply by 100, you get the gross profit margin percentage.

For example, if a company earns $200 in revenue and spends $120 on costs, the gross profit is $80. The gross profit margin is $80 ÷ $200 × 100 = 40%. This means the company keeps 40 cents from every dollar of sales before paying for things like rent, wages, and taxes.

Gross Profit Margin vs. Markup

People often mix up margin and markup, but they are not the same. Margin is based on the selling price (revenue). Markup is based on the cost. Using the same example above, the markup would be $80 ÷ $120 × 100 = 66.67%. The same dollar amount of profit gives a different percentage depending on which formula you use. If you need to work with markup specifically, our markup calculator can help you convert between cost, selling price, and markup percentage.

What Is a Good Gross Profit Margin?

There is no single "good" number because it depends on the industry. Software companies often have margins above 60%. Grocery stores may have margins below 30%. In general:

  • Below 10% is considered low and may signal tight pricing or high costs.
  • 10% to 30% is moderate and common in many industries.
  • Above 30% is considered healthy and shows strong pricing power.
  • Below 0% means the business is selling products for less than they cost to make, which is a loss.

Why Gross Profit Margin Matters

Gross profit margin is one of the most important numbers in business finance. It helps business owners, investors, and managers understand how well a company turns sales into profit at the most basic level. Investors often pair margin analysis with other financial metrics like return on investment (ROI) and break-even analysis to get a complete picture of a company's health. If the margin is shrinking over time, it could mean costs are rising or prices are too low. You can use a percent change calculator to measure how much your margin has shifted from one period to the next. Tracking this number helps businesses make smarter decisions about pricing, suppliers, and which products to sell.


Formulas used

Gross Profit
P = R - C
Gross Profit Margin Percentage
M = \frac{P}{R} \times 100
Markup Percentage
K = \frac{P}{C} \times 100
Revenue from Cost and Margin
R = \frac{C}{1 - \frac{M}{100}}
Cost from Revenue and Markup
C = \frac{R}{1 + \frac{K}{100}}
Tax-Adjusted Revenue
R_{adj} = \frac{R}{1 + \frac{t}{100}}

Frequently asked questions

What two values do I need to use this calculator?

You need any two of the five values: revenue, cost, profit, gross profit margin %, or markup %. Pick one in each dropdown, enter the numbers, and the calculator finds everything else for you.

Can I calculate revenue if I only know cost and margin?

Yes. Set the first dropdown to "Cost" and the second to "Gross Profit Margin %." Enter both values, click Calculate, and the tool will find your revenue, profit, and markup automatically.

Why can't I pick margin and markup together?

Margin and markup are both percentages that describe the same relationship. Without at least one dollar amount (revenue, cost, or profit), the calculator cannot figure out any actual money values. Pick at least one dollar-based value to get full results.

What does the tax toggle do?

If your revenue includes tax, VAT, or GST, turn on the tax toggle and enter the tax rate. The calculator removes the tax from your revenue before it figures out your margin. This gives you a margin based on your true sales income, not the tax portion.

Does this calculator find net profit margin?

No. This tool only calculates gross profit margin, which uses cost of goods sold. Net profit margin also subtracts expenses like rent, salaries, and taxes. Gross margin is a simpler measure that focuses on production costs only.

What counts as cost of goods sold?

Cost of goods sold (COGS) includes the direct costs to make or buy the products you sell. This covers raw materials, factory labor, and shipping to your warehouse. It does not include rent, office salaries, or marketing expenses.

Can I change the currency after I calculate?

Yes. Pick a new currency from the dropdown and the calculator updates all symbols and results right away. The numbers stay the same — only the currency label changes.

What do the colored health labels mean?

The label tells you how strong your margin is at a glance. Below 0% shows "Operating at a Loss" in red. 0–10% shows "Low Margin" in orange. 10–30% shows "Moderate Margin" in yellow. Above 30% shows "Healthy Margin" in green.

What is the difference between entered and calculated badges?

An Entered badge means you typed that value in yourself. A Calculated badge means the tool computed that value from the numbers you provided.

Can gross profit margin be negative?

Yes. A negative margin means your cost of goods sold is higher than your revenue. You are losing money on every sale. The calculator will show this with a red "Operating at a Loss" label.

Can gross profit margin be over 100%?

No. Gross profit margin is profit divided by revenue, so it can never go above 100%. A 100% margin would mean your cost is zero. The calculator will show an error if you try to enter a margin above 100%.

How do I read the step-by-step solution?

Each step shows one part of the math in order. It starts by listing the values you entered, then shows how it found the missing values, and ends by calculating the margin and markup percentages. You can follow along to check the work or learn the formulas.

Does the calculator round my results?

Yes. Use the "Decimal Places" dropdown to choose 0 to 4 decimal places. All results, chart labels, and step-by-step math will round to the number you pick.

Is gross profit the same as gross profit margin?

No. Gross profit is a dollar amount — it equals revenue minus cost. Gross profit margin is a percentage — it equals gross profit divided by revenue times 100. This calculator shows both values.

How often should a business check its gross profit margin?

Most businesses should check it every month or every quarter. Tracking it over time helps you spot rising costs, weak products, or pricing problems before they become serious.