Profit Margin Calculator
Profit margin shows how much of every revenue dollar you keep as profit, and tracking both gross and net margin is essential for understanding where your business makes and loses money. Gross margin measures profitability before operating expenses (revenue minus cost of goods sold), revealing how efficiently you produce or deliver your product, while net margin is the bottom line after all costs, showing your true profitability. Healthy margins vary widely by industry — software companies may net 20% to 30%, while grocery stores net only 1% to 3% — so the right way to judge your margins is against your industry average, not against an absolute standard. This calculator shows both margins plus the gross and net profit in dollars, helping you gauge competitiveness and spot where profit is leaking. Enter your total revenue, the cost of goods sold (COGS), and your operating expenses, and the calculator returns your gross profit, gross margin, net profit, and net margin. Above 10% net margin is generally strong and 20% or more is excellent, but a 3% margin is fine for grocery and poor for software, so context matters. COGS includes the direct costs of producing goods or services — materials, direct labor, manufacturing overhead — and excludes operating expenses like marketing, rent, and salaries. A strong gross margin but weak net margin signals high operating costs, which tells you where to focus improvement. To improve your profit margin, raise prices, reduce COGS (cheaper materials, more efficient production), cut operating expenses, or shift toward higher-margin products and services. Use this calculator to see gross and net profitability, benchmark against industry peers, guide pricing and cost decisions, and reveal where profit is being lost.
Profit Margin Calculator
Calculate gross and net profit margins from revenue, costs, and expenses.
Net profit margin
20%
Net profit ÷ revenue
Gross profit margin
40%
Net profit
$40,000
Gross profit
$80,000
Gross margin shows profitability before operating expenses; net margin shows the bottom line after all costs. Healthy margins vary by industry — compare against peers to gauge competitiveness.
How to Use This Calculator
- 1Enter your total revenue.
- 2Enter the cost of goods sold (COGS).
- 3Enter operating expenses.
- 4Read your gross and net profit margins.
Why It Helps
- ✓Shows gross and net profitability.
- ✓Helps benchmark against industry peers.
- ✓Guides pricing and cost decisions.
- ✓Reveals where profit is lost.
About This Calculator
Profit margin shows how much of every revenue dollar you keep as profit, and tracking both gross and net margin is essential for understanding where your business makes and loses money. Gross margin measures profitability before operating expenses (revenue minus cost of goods sold), revealing how efficiently you produce or deliver your product, while net margin is the bottom line after all costs, showing your true profitability. Healthy margins vary widely by industry — software companies may net 20% to 30%, while grocery stores net only 1% to 3% — so the right way to judge your margins is against your industry average, not against an absolute standard. This calculator shows both margins plus the gross and net profit in dollars, helping you gauge competitiveness and spot where profit is leaking. Enter your total revenue, the cost of goods sold (COGS), and your operating expenses, and the calculator returns your gross profit, gross margin, net profit, and net margin. Above 10% net margin is generally strong and 20% or more is excellent, but a 3% margin is fine for grocery and poor for software, so context matters. COGS includes the direct costs of producing goods or services — materials, direct labor, manufacturing overhead — and excludes operating expenses like marketing, rent, and salaries. A strong gross margin but weak net margin signals high operating costs, which tells you where to focus improvement. To improve your profit margin, raise prices, reduce COGS (cheaper materials, more efficient production), cut operating expenses, or shift toward higher-margin products and services. Use this calculator to see gross and net profitability, benchmark against industry peers, guide pricing and cost decisions, and reveal where profit is being lost.
Disclaimer: This calculator provides estimates for educational purposes only and does not constitute financial, tax, or investment advice. Results depend on assumptions that may not reflect your actual situation.
Frequently Asked Questions
What is a good net profit margin?
It varies by industry. Above 10% is generally strong; 20%+ is excellent. Compare against your industry average — a 3% margin is fine for grocery but poor for software.
What is the difference between gross and net margin?
Gross margin is revenue minus COGS (production cost). Net margin subtracts all operating expenses, interest, and taxes to show the bottom line.
What counts as COGS?
Direct costs of producing goods or services — materials, direct labor, manufacturing overhead. It excludes operating expenses like marketing, rent, and salaries.
How can I improve my profit margin?
Raise prices, reduce COGS (cheaper materials, efficient production), cut operating expenses, or shift to higher-margin products and services.
Should I focus on gross or net margin?
Both. Gross margin shows production efficiency; net margin shows overall profitability. A strong gross margin but weak net margin signals high operating costs.
Related Calculators
Related Guides

Written by
James MitchellSenior Financial Analyst & Personal Finance Expert
Certified Financial Planner (CFP) • MBA in Finance, University of Chicago Booth School of Business