Profit Margin Calculator

Calculate gross and net profit margins.

Gross Margin = (Revenue - Cost) / Revenue × 100

Markup = (Revenue - Cost) / Cost × 100

How to use Profit Margin Calculator

1

Enter Your Revenue Amount

Click the 'Revenue' input field at the top of the calculator. Type your total sales or revenue amount in dollars. For example, enter 50000 for $50,000 in annual revenue. The field accepts decimal values up to two places.

2

Input Your Cost of Goods Sold (COGS)

Locate the 'Cost of Goods Sold' field below the revenue input. Enter the total direct costs to produce your products or services. This includes materials, labor, and manufacturing overhead. The calculator will automatically compute your gross profit margin percentage.

3

Add Your Total Operating Expenses

Fill in the 'Operating Expenses' field with rent, salaries, utilities, marketing, and other business costs. Leave this field blank if calculating gross margin only. The net profit margin will display instantly showing your final profitability percentage.

4

Review Your Profit Margin Results

View the calculated results displayed in the green results box. You'll see gross profit margin percentage, net profit margin percentage, gross profit amount, and net profit amount. All calculations update in real-time as you modify input values.

5

Clear and Recalculate

Click the 'Clear All' button to reset all fields and start a new calculation. Use this to compare different scenarios, pricing strategies, or business models without manual deletion of previous entries.

Related Tools

Profit margin calculator: calculate gross margin, net margin, and markup

Profit margin calculator: calculate gross margin, net margin, and markup

Need to quickly calculate your profit margin or markup percentage? ToolHQ's Profit Margin Calculator computes gross margin, net margin, and markup from revenue and cost. Free, no account needed.

ToolHQ's Profit Margin Calculator is a free online tool that calculates gross profit margin, net profit margin, and markup percentage from your revenue and cost figures, shows the formulas, and works in both directions (find margin from price or find price from target margin).

Profit margin is one of the most fundamental metrics in any business, but the terminology confuses people: margin and markup are different calculations that look similar. This tool handles all three metrics simultaneously and labels them clearly, so you always know exactly which number you're looking at and what it means.

Key Takeaways

  • Calculates gross profit margin, net profit margin, and markup percentage from your inputs
  • Shows the formula for each calculation so you can verify the math
  • Works in reverse: enter a desired margin to find the selling price
  • No data is stored or transmitted, calculations run in the tool
  • Free with no account required

The difference between gross margin, net margin, and markup

These three terms describe different aspects of profitability, and confusing them leads to real financial mistakes.

Gross profit margin measures how much profit you make after accounting for the direct cost of producing or purchasing what you sell, expressed as a percentage of revenue.

Formula: Gross Margin % = (Revenue - Cost of Goods Sold) / Revenue × 100

Example: If you sell a product for $100 and it costs $60 to produce, your gross margin is ($100 - $60) / $100 × 100 = 40%.

Net profit margin accounts for all expenses: cost of goods sold plus operating expenses, taxes, and interest. It reflects the actual percentage of revenue that becomes profit.

Formula: Net Margin % = Net Profit / Revenue × 100

Markup is different from margin. It measures the profit as a percentage of the cost, not the revenue.

Formula: Markup % = (Revenue - Cost) / Cost × 100

Same example: $100 revenue, $60 cost. Markup = ($100 - $60) / $60 × 100 = 66.7%.

Note that the same transaction gives a 40% margin and a 66.7% markup. These are not interchangeable. According to Wikipedia's overview of profit margin, the confusion between margin and markup is one of the most common errors in pricing decisions. Selling at a "50% markup" is not the same as achieving a "50% margin," and the difference can mean the difference between a profitable and unprofitable product.

Investopedia's explanation of gross margin notes that gross margin benchmarks vary significantly by industry. Software companies often achieve 70-80% gross margins; grocery stores may operate at 25-30%.


When to use a profit margin calculator

Profit margin calculations come up in a wide range of business decisions.

Pricing new products: You know your costs. You want to know what price achieves a target gross margin of 40%, 50%, or 60%.

Evaluating product performance: You're reviewing sales data and want to see which products have the highest margin, not just the highest revenue.

Comparing suppliers: Two suppliers offer different prices for the same input. You want to see how each affects your margin on the finished product.

Financial reporting: You're preparing a summary for investors or management and need to express profitability as a percentage.

Negotiating pricing: A customer asks for a discount. You need to know what margin you'd be left with at their requested price before agreeing.

Mini-story: In May 2025, Priya, who ran a small skincare product business in Mumbai, was pricing a new face serum. Her production cost was ₹480 per unit. She wanted a gross margin of at least 55% to cover operating costs and still make a profit. She used ToolHQ's Profit Margin Calculator in reverse mode: entered her cost and her target margin, and the tool returned the required selling price of approximately ₹1,067. She rounded to ₹1,099 as a retail price and confirmed that at that price, her gross margin was 56.3%. Before the tool, she'd been setting prices by adding a "comfortable amount" to costs without a consistent margin target.

Calculate your profit margin now, free, no account needed


How to use ToolHQ's profit margin calculator: step by step

The calculation takes under a minute.

  1. Open the tool. Go to https://www.toolhq.app/tools/profit-margin-calculator. No login required.
  2. Choose your mode. Most versions offer two modes: (a) enter revenue and cost to find margin, or (b) enter cost and target margin to find the required selling price.
  3. Enter your cost. This is the cost of producing or purchasing the product or service: cost of goods sold (COGS), not including operating expenses.
  4. Enter your revenue (or target margin). If finding margin: enter the actual selling price. If finding price: enter your target margin percentage.
  5. View your results. The calculator shows gross margin %, markup %, and the profit amount. For net margin, also enter your operating expenses.
  6. Check the formulas. Many versions display the formula used, allowing you to verify the calculation.

Industry benchmark margins for reference

Understanding whether your margins are healthy requires context. Here are typical gross margin ranges by sector:

Industry Typical Gross Margin
Software/SaaS 65-80%
Consulting/services 50-70%
Consumer electronics 25-40%
E-commerce retail 30-50%
Food and beverage 25-45%
Manufacturing 20-40%
Grocery retail 20-30%
Restaurant 60-70% (before labor and overhead)

These are gross margin benchmarks. Net margins are lower in every category after operating costs.

Mini-story: Leon, a freelance web consultant in Berlin, was evaluating whether to take on a fixed-price project for €6,000. His estimated time cost (calculated at his desired hourly rate) was €3,800. He used ToolHQ's Profit Margin Calculator to see: gross margin = (6,000 - 3,800) / 6,000 × 100 = 36.7%. He compared this against his personal benchmark of 40% gross margin for fixed-price work. The project was slightly below his target but still acceptable given the client relationship. He negotiated a €400 scope reduction that brought the margin closer to 40% before agreeing. The calculator gave him a number to anchor the negotiation.

For related tools, pair this with the Percentage Calculator for general percentage math, the Budget Planner for overall financial planning, and the Tax Calculator for understanding post-tax profit. More financial tools are in ToolHQ's finance category.


Frequently asked questions

What is a good profit margin?

It depends on the industry. Software companies often achieve 60-80% gross margins; retail typically targets 30-50%. "Good" means competitive within your sector and sufficient to cover operating costs and remain profitable after all expenses.

Is margin the same as markup?

No. Margin is profit as a percentage of revenue. Markup is profit as a percentage of cost. The same transaction gives different percentages: a 40% margin is approximately a 67% markup.

How do I calculate net margin?

Net margin = Net Profit / Revenue × 100. Net profit is revenue minus all costs: COGS, operating expenses, taxes, and interest. The profit margin calculator handles gross margin; for net margin, enter your net profit figure directly.

Can I find the selling price from a target margin?

Yes. Use the reverse mode: enter your cost and your target margin percentage, and the calculator returns the required selling price. Formula: Price = Cost / (1 - Target Margin as decimal).

What if my costs vary by order size?

For products with variable cost per unit, calculate margin at your expected average order size. Some businesses calculate margin at multiple volume levels to understand how pricing changes with scale.

How do I convert between margin and markup?

If you know the markup percentage and need the margin, or vice versa, use these formulas:

  • Margin from markup: Margin % = Markup % / (100 + Markup %) × 100
  • Markup from margin: Markup % = Margin % / (100 - Margin %) × 100

Example: a 67% markup = 67 / (100 + 67) × 100 = 40% margin. A 40% margin = 40 / (100 - 40) × 100 = 67% markup. These conversions are useful when a supplier quotes a markup and you need to know your resulting margin, or when a client asks for a percentage discount and you need to recalculate your margin at their requested price.


Conclusion: the short version

Gross margin, net margin, and markup are three different ways to measure profitability, and confusing them leads to pricing errors that compound over time. ToolHQ's Profit Margin Calculator computes all three from your revenue and cost inputs, shows you the formulas, and works in reverse so you can find the price that hits a target margin. Free, instant, no account required.

Know your margins. Price with intention.

Calculate profit margin and markup now, free, no account needed

Related tools: Percentage Calculator for percentage calculations, Budget Planner for overall financial planning, and Tax Calculator for income tax estimates. All in ToolHQ's finance section.