Finance calculators

Gross Profit Calculator

Updated Jul 23, 2026 By Jehan Wadia
Rate Formulas
Symbol only — no conversion is applied.
Format numbers
Toggle grouped (12,500.75) vs plain (12500.75).
Standard Mode — Revenue & COGS
Enter revenue and cost of goods sold

At a Glance
Revenue vs. COGS
COGS: $6,000.00 Gross Profit: $4,000.00
Output Metrics
Gross Profit
$4,000.00
Gross Margin %
40.00%
Healthy
Markup %
66.67%
COGS Ratio %
60.00%
What-If Margin Scenarios (holding current COGS)
Step-by-Step Solution
Multi-Volume Sales Projection
Units SoldRevenueGross Profit
Cost / COGSRevenue / SellingGross ProfitGross Margin %Markup %COGS Ratio %
No calculations logged yet.

Introduction

Gross profit is the money left over after you subtract the cost of your goods from your revenue. It tells you how much you earn before paying for things like rent, wages, and other bills. Knowing your gross profit helps you set prices, spot problems, and make smarter choices for your business.

This free gross profit calculator makes the math fast and simple. Enter your revenue and cost of goods sold, and it gives you your gross profit, gross margin percentage, markup percentage, and COGS ratio right away. You can use Standard Mode to find gross profit from revenue and costs, Flexible Mode to solve for any missing value when you know two out of three, or Reverse Mode to find the revenue you need to hit a target margin.

The calculator also shows step-by-step solutions, what-if scenarios at different margin levels, a multi-volume sales projection table, and a bulk mode for processing up to 100 products at once. Every calculation is saved to a history log you can export as a CSV file.

How to Use Our Gross Profit Calculator

Enter your sales and cost numbers to find your gross profit, gross margin percentage, markup percentage, and COGS ratio. Pick a mode, fill in the fields, and the calculator does the rest.

Currency: Choose your currency from the dropdown at the top. This changes the symbol shown but does not convert amounts.

Format Numbers: Click the toggle to turn thousand separators on or off. When on, numbers display as 12,500.75 instead of 12500.75.

Standard Mode

Revenue: Type in the total money earned from sales. This is the full amount your customers paid.

Cost of Goods Sold (COGS): Type in the direct cost to make or buy the goods you sold. This includes materials, labor, and production costs.

Flexible Mode

Cost Price: Enter the cost per unit. This is what you pay to make or buy one item.

Resale / Selling Price: Enter the price one customer pays for the item.

Gross Profit Margin: Enter the profit margin as a percent, or use the + and − buttons to adjust by 0.5% at a time. Fill in any two of these three fields and the calculator solves the third.

Lock Button: Click the lock icon next to any field to keep that value fixed. The calculator will always solve around locked fields first.

Fixed Costs / Overhead (optional): Enter your total fixed costs like rent or salaries. When filled in, the calculator shows how many units you need to sell to break even.

Reverse / Target Mode

Cost of Goods Sold (COGS): Enter your total cost of goods sold.

Target Gross Margin: Enter the gross margin percent you want to hit. The calculator tells you the exact revenue you need to reach that goal. Use the + and − buttons to step the margin up or down by 0.5%.

Extra Features

Scale by Quantity: Open this section and enter a quantity to see your total revenue, total COGS, and total gross profit across multiple units.

Bulk / Batch Mode: Paste multiple rows of revenue and COGS (one pair per line, separated by a comma) to calculate gross profit for up to 100 items at once. Click "Export Bulk Results to CSV" to download the results.

Calculation History: Every calculation is saved in a log table. You can export the full history as a CSV file or clear it at any time.

What Is Gross Profit?

Gross profit is the money a business keeps after paying for the goods or services it sells. You find it with a simple formula: Revenue − Cost of Goods Sold (COGS) = Gross Profit. Revenue is the total money earned from sales. COGS is what it costs to make or buy the product. The leftover amount is your gross profit.

For example, if you sell a shirt for $50 and it costs you $20 to make, your gross profit is $30. That $30 still has to cover other bills like rent, wages, and marketing — but it tells you how much each sale is actually worth before those expenses.

Gross Profit Margin

Gross profit margin turns your gross profit into a percentage. The formula is (Gross Profit ÷ Revenue) × 100. In the shirt example, that's ($30 ÷ $50) × 100 = 60%. This percentage makes it easy to compare products, time periods, or even different businesses, no matter their size.

Markup vs. Margin

People often mix up markup and margin. Margin is based on the selling price. Markup is based on the cost. Using the same shirt: the margin is 60%, but the markup is ($30 ÷ $20) × 100 = 150%. Both numbers describe the same profit — they just use a different starting point. Knowing the difference helps you set prices correctly.

Why Gross Profit Matters

Gross profit shows whether your core business is making money. A high gross margin means each sale leaves plenty of room to cover operating costs and still earn a net profit. A low or negative margin is a warning sign — it means you may be selling at a loss or your production costs are too high. Tracking this number over time helps business owners spot problems early and make smarter pricing decisions.

What Counts as COGS?

Cost of goods sold includes the direct costs tied to making or buying a product. Common examples are raw materials, factory labor, packaging, and shipping to your warehouse. It does not include indirect costs like office rent, advertising, or salaries for staff who don't make the product. Those fall under operating expenses and come out after gross profit.


Formulas used

Gross Profit
GP = Revenue - COGS
Gross Margin Percentage
\text{Gross Margin} = \frac{Revenue - COGS}{Revenue} \times 100
Markup Percentage
\text{Markup} = \frac{Revenue - COGS}{COGS} \times 100
COGS Ratio Percentage
\text{COGS Ratio} = \frac{COGS}{Revenue} \times 100
Required Revenue (Reverse / Target Mode)
Revenue = \frac{COGS}{1 - \frac{\text{Target Margin}}{100}}
Break-Even Units
\text{Break-Even Units} = \left\lceil \frac{\text{Fixed Costs}}{Revenue - COGS} \right\rceil

Frequently asked questions

What is the difference between gross profit and net profit?

Gross profit is your revenue minus the cost of goods sold (COGS) only. Net profit goes further — it subtracts all other expenses like rent, wages, taxes, and interest from your gross profit. Gross profit shows if your products make money. Net profit shows if your whole business makes money.

Can gross profit be negative?

Yes. Gross profit is negative when your cost of goods sold is higher than your revenue. This means you are selling products for less than they cost to make or buy. The calculator shows a red warning banner and marks the result as a loss when this happens.

What is a good gross profit margin?

It depends on your industry. Retail businesses often see margins of 20% to 50%. Software companies can reach 70% or higher. Food and grocery businesses may run at 25% to 35%. The calculator labels margins below 10% as low, 10% to 30% as moderate, 30% to 50% as healthy, and above 50% as high.

How do I use Flexible Mode to find a selling price?

Enter your cost price and your desired gross profit margin percentage. Leave the selling price field empty or unlocked. The calculator solves for the selling price you need to charge. You can also lock any two fields with the lock icon to control which value gets computed.

What does Reverse Mode do?

Reverse Mode tells you the exact revenue you need to earn to hit a target gross margin. Enter your cost of goods sold and the margin percent you want. The calculator works backward and shows the required revenue amount.

Does the currency selector convert my numbers?

No. The currency dropdown only changes the symbol shown next to your numbers (like $, £, or €). It does not convert amounts between currencies. All values stay exactly as you enter them.

How does the break-even units feature work?

In Flexible Mode, enter your fixed costs (like rent or salaries) in the optional field. The calculator divides your fixed costs by the gross profit per unit to show how many units you must sell to cover those costs and break even.

How many rows can I process in Bulk Mode?

You can process up to 100 rows at once. Paste each row as revenue and COGS separated by a comma, one pair per line. Click "Calculate All" and the results appear in a table. You can export them as a CSV file.

What is COGS ratio?

COGS ratio is your cost of goods sold divided by your revenue, shown as a percentage. It tells you what share of every dollar in sales goes toward production costs. A COGS ratio of 60% means 60 cents of every dollar earned pays for the product, leaving 40 cents as gross profit.

How is markup different from gross margin in this calculator?

Both describe the same profit amount but use different bases. Gross margin divides profit by the selling price. Markup divides profit by the cost. For example, if a product costs $40 and sells for $100, the gross margin is 60% but the markup is 150%.

Can I save or export my calculation history?

Yes. Every calculation you run is saved in the history table at the bottom of the page. Click "Export History to CSV" to download all your past results as a spreadsheet file. You can also clear the history at any time with the "Clear History" button.

What does the Scale by Quantity section do?

It multiplies your per-unit results by any quantity you enter. Type a number of units and the calculator shows your total revenue, total COGS, and total gross profit for that many units. This helps you forecast earnings at different sales volumes.

What do the what-if margin scenarios show?

The what-if strip shows your gross profit and required revenue at five common margin levels: 10%, 20%, 30%, 40%, and 50%. It holds your current COGS constant and recalculates revenue for each margin. This helps you quickly compare pricing strategies.

Is this gross profit calculator free to use?

Yes. This calculator is completely free with no sign-up required. You can run unlimited calculations, use all three modes, process bulk batches, and export results to CSV at no cost.