Free Interactive Calculator

Free Profit Margin Calculator

Calculate your gross profit, net profit, and profit margins in seconds.

All free tools

Business Profitability Calculator

Enter your business revenue, cost of goods sold, and operating expenses below. The calculator automatically shows how much of your revenue remains as gross profit and net profit, along with the corresponding profit-margin percentages and markup.

Your numbers

$

Total sales or revenue for the period.

$

Direct costs associated with producing or delivering what you sold.

$

Business expenses not included in COGS, such as rent, payroll, software, utilities, insurance, and marketing.

Your calculations stay in your browser. No signup required.

Business Profitability Summary

Total Revenue$0.00
Cost of Goods Sold$0.00
Gross Profit$0.00
Gross Profit Margin0.00%
Total Operating Expenses$0.00
Net Profit$0.00
Net Profit Margin0.00%
Markup on COGS0.00%
Operating Expense Ratio0.00%

Revenue Breakdown

Revenue$0.00
COGS$0.00
Gross Profit$0.00
Operating Expenses$0.00
Net Profit$0.00

Gross margin shows what remains after direct production costs. Net margin shows what remains as profit after direct costs and operating expenses. Markup shows profit as a percentage of cost rather than selling price.

Opens your browser's print dialog — choose "Save as PDF" to download.

Target Profit Margin Calculator

Calculate the selling price needed to achieve a desired gross profit margin. Enter your cost and the profit margin you want to reach.

Pricing inputs

$

The cost of the product or service you are pricing.

%

The gross profit margin you want to achieve. Must be less than 100%.

Required price

Required Selling Price$0.00
Profit per Unit$0.00

Profit margin and markup are not the same. A 40% profit margin on a $60 cost gives a $100 selling price — which is a 66.67% markup. Margin is based on selling price; markup is based on cost.

How it works

Gross Profit

Revenue minus the direct cost of producing or delivering your products or services.

Gross Profit Margin

The percentage of revenue remaining after direct costs.

Net Profit

The amount remaining after COGS and operating expenses are deducted from revenue.

Net Profit Margin

The percentage of revenue remaining as profit after the included costs and operating expenses.

Markup on COGS

Profit expressed as a percentage of cost, rather than selling price.

Operating Expense Ratio

Total operating expenses expressed as a percentage of revenue.

How to calculate profit margin

The core profit margin formula is simple: Profit Margin = (Profit ÷ Revenue) × 100. Profit margin expresses profit as a percentage of revenue, so it tells you how many cents of profit you keep from every dollar of sales.

Which profit figure you plug in determines which margin you get. Use gross profit (revenue minus direct costs) for gross profit margin, or net profit (revenue minus all included costs and operating expenses) for net profit margin. Both are percentages, but they answer different questions about your business.

Gross profit margin formula

Gross Profit = Revenue − COGS

Gross Profit Margin = (Gross Profit ÷ Revenue) × 100

Worked example: a business earns $50,000 in revenue and has $20,000 in cost of goods sold. Gross profit is $50,000 − $20,000 = $30,000. Gross profit margin is ($30,000 ÷ $50,000) × 100 = 60%. This means 60% of revenue remains after the direct cost of what was sold.

Net profit margin formula

Net Profit = Revenue − COGS − Operating Expenses

Net Profit Margin = (Net Profit ÷ Revenue) × 100

Worked example: using the same $50,000 revenue and $20,000 COGS, the business also has $15,000 in operating expenses. Net profit is $50,000 − $20,000 − $15,000 = $15,000. Net profit margin is ($15,000 ÷ $50,000) × 100 = 30%. This shows what remains as profit after all included costs.

Profit margin vs. markup

Profit margin and markup are often confused, but they use different bases. Profit margin measures profit as a percentage of the selling price. Markup measures profit as a percentage of cost.

Numerical example: an item costs $60 and sells for $100. The profit is $40. The profit margin is ($40 ÷ $100) × 100 = 40%. The markup is ($40 ÷ $60) × 100 = 66.67%. Same dollar profit, two different percentages — because margin divides by the larger selling price and markup divides by the smaller cost.

This matters for pricing. If you apply a "40% markup" to a $60 cost, you get an $84 selling price. If you want a "40% profit margin" on a $60 cost, you need a $100 selling price. Mixing the two up is one of the most common pricing mistakes small businesses make.

Profit margin example

Using the example built into the calculator above — revenue of $100,000, COGS of $40,000, and operating expenses of $35,000:

  • Gross Profit: $60,000 (Revenue − COGS)
  • Gross Margin: 60% ($60,000 ÷ $100,000)
  • Net Profit: $25,000 ($100,000 − $40,000 − $35,000)
  • Net Margin: 25% ($25,000 ÷ $100,000)
  • Markup on COGS: 150% ($60,000 ÷ $40,000)

In plain terms: of the $100,000 earned, $60,000 remains after direct costs (a 60% gross margin). After $35,000 of operating expenses, $25,000 remains as net profit (a 25% net margin). The $60,000 of gross profit is 150% of the $40,000 cost — that is the markup.

How to use the profit margin calculator

  1. Enter your total revenue for the period.
  2. Enter your cost of goods sold (direct costs of producing or delivering what you sold).
  3. Enter your operating expenses (rent, payroll, software, utilities, marketing, etc.).
  4. Review your gross profit and gross margin to see what remains after direct costs.
  5. Review your net profit and net margin to see what remains after operating expenses.
  6. Review your markup to see profit as a percentage of cost.

Use the Target Profit Margin Calculator above to work backwards from a desired margin to the selling price you would need to charge.

Why profit margin matters for small businesses

Profit-margin analysis helps a small business evaluate several areas at once. It shows whether pricing is high enough to cover costs, whether direct costs are eating too much of revenue, and whether operating expenses are sustainable relative to sales.

Comparing margins across products and services can reveal which ones are actually profitable and which ones look busy but contribute little. Over time, tracking margins is a simple way to monitor business performance and overall profitability without needing complex accounting reports.

There is no single universally "good" profit margin. Margins vary widely by industry, business model, company size, expense structure, accounting practices, and other factors. A healthy margin for a consulting firm and a healthy margin for a grocery store look very different. Use margins to compare against your own past performance and your industry's norms rather than against an arbitrary target.

For more on organizing the technology side of your business, see our Software Budget Calculator or browse Business Tools Lab guides on software selection and operations.

Profit margin calculator FAQs

What is profit margin?+

Profit margin is the percentage of revenue that remains as profit after costs are deducted. It shows how much of every dollar earned the business keeps as profit.

How do you calculate profit margin?+

Divide profit by revenue and multiply by 100. Profit Margin = (Profit ÷ Revenue) × 100. The type of profit you use (gross or net) determines whether you get gross profit margin or net profit margin.

What is gross profit margin?+

Gross profit margin is the percentage of revenue left after subtracting the direct cost of producing or delivering your products or services (COGS). It measures how efficiently a business produces what it sells.

What is net profit margin?+

Net profit margin is the percentage of revenue remaining as profit after both direct costs (COGS) and operating expenses are deducted. It reflects overall profitability after all included costs.

What is the difference between profit margin and markup?+

Profit margin measures profit as a percentage of the selling price (revenue). Markup measures profit as a percentage of the cost. The same dollar amount of profit produces a higher markup percentage than margin percentage because cost is smaller than selling price.

How do I calculate a 20% profit margin?+

To achieve a 20% gross profit margin, your selling price should equal your cost divided by 0.80. For example, if an item costs $60, the selling price for a 20% margin is $60 ÷ 0.80 = $75.00.

How do I calculate a 30% profit margin?+

To achieve a 30% gross profit margin, divide your cost by 0.70. For example, if an item costs $60, the selling price for a 30% margin is $60 ÷ 0.70 = $85.71.

How do I calculate selling price from a desired profit margin?+

Use the formula Selling Price = Cost ÷ (1 − Desired Margin). Convert the desired margin from a percentage to a decimal first. A 40% desired margin on a $60 cost gives $60 ÷ 0.60 = $100.00.

Can a profit margin be negative?+

Yes. When costs exceed revenue, profit is negative and the profit margin is negative. A negative margin indicates the business is losing money on the activity being measured.

Is profit margin calculated before or after expenses?+

It depends on the type. Gross profit margin is calculated before operating expenses, using only revenue and COGS. Net profit margin is calculated after operating expenses are also deducted.

Explore More Free Business Tools

Continue planning with other free Business Tools Lab resources.

This calculator is provided for general informational and educational purposes only. Results are estimates based on the information entered and should not be considered accounting, tax, legal, investment, or financial advice.

Continue Exploring

Other free Business Tools Lab resources to help you plan and evaluate software.

All free tools