Profit Margin Calculator

Profit margin is one of the most fundamental metrics in business. It tells you what percentage of your revenue you actually keep as profit after covering the cost of goods sold. A business can have strong revenue and still be unprofitable if its margins are too thin. This calculator gives you your gross profit and profit margin percentage instantly — so you can see exactly how much of every sale ends up in your pocket.

The direct cost to produce or acquire one unit — materials, labour, and other direct costs. Do not include overhead here.
The price you charge the customer for one unit.
Gross Profit
-
Profit Margin
-
Percentage of revenue retained as profit after COGS

What Is Profit Margin?

Profit margin is the percentage of revenue that remains as profit after subtracting the cost of goods sold (COGS). It measures how efficiently a business converts revenue into profit — and it's one of the first metrics any investor, lender, or financial analyst will look at when evaluating a business.

There are several types of profit margin. This calculator focuses on gross profit margin — the margin after subtracting direct production costs (COGS) but before deducting overhead, operating expenses, taxes, and interest. Gross margin tells you how profitable your core product or service is before the business's fixed costs are factored in.

A business with a high gross margin has more room to cover overhead and still generate net profit. A business with a thin gross margin needs very high volume or very low overhead to survive. Understanding your gross margin is the starting point for understanding your entire cost structure.

How It Works

Enter two values:

The calculator subtracts COGS from revenue to find gross profit, then divides gross profit by revenue to give you the profit margin percentage. Results update instantly as you type.

Formula

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

Example Calculation

Worked Example — Physical Product

A business sells a handmade ceramic mug. The direct cost to produce one mug (clay, glaze, kiln electricity, packaging) is $18. The selling price is $45.

Gross Profit = $45 − $18 = $27

Profit Margin = ($27 ÷ $45) × 100 = 60%

This means 60% of every sale is gross profit. The remaining 40% covers the direct cost of making the mug. The business then needs to cover its overhead (studio rent, website, marketing) from that 60% gross margin.

Worked Example — Service Business

A freelance web developer charges $2,000 for a project. The direct cost (subcontracted design work) is $400.

Gross Profit = $2,000 − $400 = $1,600

Profit Margin = ($1,600 ÷ $2,000) × 100 = 80%

Service businesses typically have higher gross margins than product businesses because their direct costs are lower. However, they still need to cover overhead (software, equipment, professional development) from this margin.

When to Use This Calculator

Common Mistakes

How to Interpret Your Result

What counts as a "good" profit margin varies significantly by industry. Here are general benchmarks for gross margin:

Always benchmark against your own industry. A 30% gross margin might be excellent in grocery retail but dangerously thin for a software business. The key question is: after covering overhead, is there enough gross profit left to generate a meaningful net profit?

💡 Gross Margin vs. Net Margin Gross margin is profit after COGS only. Net margin is profit after all expenses — COGS, overhead, operating expenses, interest, and taxes. A business with a 60% gross margin and $50,000/month in overhead needs to generate enough revenue to cover that overhead before any net profit appears. Use the Break-Even Calculator to find the revenue needed to cover all costs.

Frequently Asked Questions

What is the difference between gross profit margin and net profit margin?

Gross profit margin is calculated after subtracting only the direct cost of goods sold (COGS). Net profit margin is calculated after subtracting all expenses — COGS, operating expenses (rent, salaries, utilities, marketing), interest, and taxes. Gross margin tells you how profitable your product is. Net margin tells you how profitable your entire business is. This calculator computes gross margin.

What is a good profit margin?

It depends entirely on your industry. For gross margin, software businesses often achieve 70–80%, while grocery retailers may operate at 20–30%. As a general rule of thumb for net profit margin: below 5% is low, 10% is average, and 20%+ is strong. But always benchmark against your specific industry rather than general averages. A 10% net margin in a high-volume, low-overhead business can be very healthy.

What is the difference between profit margin and markup?

Margin is profit expressed as a percentage of the selling price. Markup is profit expressed as a percentage of the cost. They use different bases, so they produce different percentages for the same transaction. A product that costs $60 and sells for $100 has a 40% margin but a 66.7% markup. Confusing the two is one of the most common pricing mistakes. Read the full explanation in our Profit Margin vs. Markup guide.

How do I calculate the selling price needed to achieve a target margin?

Use this formula: Price = Cost ÷ (1 − Target Margin %). For example, if your cost is $50 and you want a 40% margin: Price = $50 ÷ (1 − 0.40) = $50 ÷ 0.60 = $83.33. This is the formula used by the Pricing Calculator, which also factors in overhead.

Should I include my own salary in the cost figure?

For gross margin purposes, only include your salary if you are directly involved in production (e.g., you are the craftsperson making the product). If your salary is a fixed overhead cost regardless of production volume, it belongs in operating expenses, not COGS. For a complete picture of profitability that includes your salary as an overhead, use the Pricing Calculator.

Why is my margin lower than I expected?

Common reasons include: forgetting to include all direct costs in COGS (e.g., packaging, shipping, payment processing fees), using list price instead of actual net revenue received, or confusing markup with margin. Double-check that your COGS figure includes every cost that varies directly with each unit sold, and that your revenue figure reflects what you actually receive after any discounts or fees.

Disclaimer: This calculator provides estimates for informational purposes only. Results are based on the inputs you provide and represent gross profit margin only — not net profit margin. Actual profitability will depend on operating expenses, taxes, and other factors not captured here. Consult a qualified accountant for comprehensive financial analysis.


Related Calculators

Markup Calculator

Calculate the markup percentage on your products and understand how it differs from profit margin.

Calculate Markup →

Pricing Calculator

Find the right selling price that covers unit costs, overhead, and delivers your target profit margin.

Set Your Price →

Break-Even Calculator

Find out how many units you need to sell to cover all your fixed and variable costs.

Find Break-Even →

Related Guides