Profit Margin Calculator
Calculate gross profit, gross margin percentage, net profit, net margin percentage, and markup. Understand your business profitability with a complete margin analysis.
How to Use This Profit Margin
Follow these steps to calculate your profit margins:
- Enter your total revenue or sales: This is your gross revenue, meaning all income from sales before any deductions. If you sell multiple products or services, enter the combined total. For a specific product analysis, enter only the revenue attributable to that product. Make sure to use revenue from the same time period for all inputs (monthly, quarterly, or annual).
- Enter your cost of goods sold (COGS): COGS includes all direct costs associated with producing or acquiring the goods you sold. For a manufacturer, this includes raw materials, direct labor, and manufacturing overhead. For a retailer, it is the wholesale cost of inventory sold. For a service business, it includes the direct labor and materials used to deliver the service. Do not include indirect costs like rent or marketing in COGS.
- Enter your operating expenses (optional): Operating expenses are the indirect costs of running your business that are not directly tied to production. This includes rent, utilities, administrative salaries, marketing and advertising, office supplies, insurance, and depreciation. If you leave this at 0, the calculator will still show gross profit and gross margin, but net profit and net margin will equal the gross figures.
After entering your data, review all five output metrics. The gross profit margin shows your production efficiency. The net profit margin reveals your overall profitability after all expenses. The markup percentage translates your margin into cost-based terms, which is useful for pricing decisions. Compare your results to industry benchmarks to understand how your business stacks up against competitors. Run the calculator with different scenarios to see how changes in pricing or costs affect your margins.
What Is Profit Margin?
Profit margin is a measure of how much profit a business retains from each dollar of revenue. It is one of the most important indicators of business health, efficiency, and long-term viability. There are three primary types of profit margins that every business owner and investor should understand: gross profit margin, operating profit margin, and net profit margin.
Gross profit margin measures profitability after deducting only the direct costs of producing goods or services (cost of goods sold, or COGS). It reveals how efficiently a company produces what it sells. Operating profit margin goes further by also subtracting operating expenses such as rent, salaries, utilities, and marketing. It shows how well the core business operations perform. Net profit margin is the bottom line, accounting for all expenses including taxes, interest, and one-time charges. It represents the percentage of revenue that ultimately becomes profit for the business owner or shareholders.
Profit margins matter because they reveal the fundamental health of a business. A company with strong revenue growth but shrinking margins may actually be heading toward financial trouble. Margins indicate whether a business can sustain itself, invest in growth, weather economic downturns, and generate returns for stakeholders. Declining margins often signal rising costs, pricing pressure, or operational inefficiency that requires immediate attention.
Different industries have vastly different benchmark margins. Software and SaaS companies typically achieve gross margins of 70% to 85% and net margins of 15% to 30%. Retail businesses often operate with gross margins of 25% to 50% and net margins of just 2% to 5%. Restaurants typically have gross margins of 60% to 70% but net margins of only 3% to 9% due to high operating costs. Manufacturing companies usually fall between 20% to 35% gross margin and 5% to 12% net margin. Knowing your industry benchmarks helps you assess whether your margins are competitive.
A frequent source of confusion is the difference between margin and markup. Margin is profit expressed as a percentage of revenue (selling price), while markup is profit expressed as a percentage of cost. A 50% markup produces only a 33.3% margin. This distinction is critical because misstating one for the other can lead to significant pricing errors. Business reports and financial statements typically use margin, while purchasing and procurement teams often think in terms of markup.
Investors use profit margins extensively to evaluate companies. Consistent or improving margins suggest strong management and competitive advantages. Margins that exceed industry averages indicate pricing power or cost efficiency. Investors compare margins across quarters and years to identify trends, and they benchmark margins against competitors to assess relative performance. Gross margin trends reveal production efficiency, while net margin trends show overall management effectiveness.
Formula & Methodology
The key formulas used in this calculator are:
- Gross Profit = Revenue − Cost of Goods Sold (COGS)
- Gross Profit Margin % = (Gross Profit / Revenue) × 100
- Net Profit = Gross Profit − Operating Expenses
- Net Profit Margin % = (Net Profit / Revenue) × 100
- Markup % = ((Revenue − COGS) / COGS) × 100
For complete financial analysis, the operating margin formula is also commonly used:
- Operating Profit = Revenue − COGS − Operating Expenses
- Operating Profit Margin % = (Operating Profit / Revenue) × 100
In this calculator, the net profit figure represents operating profit (EBIT) since taxes and interest are not included as inputs.
Variable definitions:
| Variable | Definition |
|---|---|
| Revenue | Total income from sales before any deductions |
| COGS (Cost of Goods Sold) | Direct costs of producing or acquiring the products sold |
| Operating Expenses | Indirect business costs not tied directly to production (rent, marketing, salaries, etc.) |
| Gross Profit | Revenue minus COGS; measures production profitability |
| Net Profit | Gross profit minus operating expenses; measures overall business profitability |
| Markup | Profit expressed as a percentage of cost rather than revenue |
Practical Examples
Example 1 – Retail Store: A clothing retailer generates $250,000 in annual revenue. COGS is $150,000 (wholesale cost of inventory sold). Operating expenses total $65,000 including rent ($24,000), employee wages ($28,000), utilities ($5,000), and marketing ($8,000). Gross profit = $250,000 − $150,000 = $100,000. Gross margin = $100,000 / $250,000 × 100 = 40%. Net profit = $100,000 − $65,000 = $35,000. Net margin = $35,000 / $250,000 × 100 = 14%. Markup = $100,000 / $150,000 × 100 = 66.67%. The 40% gross margin is healthy for retail, and the 14% net margin is strong for a brick-and-mortar clothing store, where 5% to 10% is more typical.
Example 2 – Restaurant: A restaurant has annual revenue of $600,000. Food and beverage costs (COGS) are $195,000 (32.5% of revenue, within the industry target of 28% to 35%). Operating expenses are $350,000 including labor ($210,000), rent ($60,000), utilities ($24,000), insurance ($12,000), marketing ($16,000), and supplies ($28,000). Gross profit = $600,000 − $195,000 = $405,000. Gross margin = 67.5%. Net profit = $405,000 − $350,000 = $55,000. Net margin = 9.2%. Markup = $405,000 / $195,000 × 100 = 207.7%. While the gross margin looks impressive at 67.5%, the high operating costs typical of restaurants reduce the net margin to 9.2%. This illustrates why restaurants must maintain tight control over both food costs and labor to remain profitable.
Example 3 – SaaS Company: A software-as-a-service company has annual revenue of $1,200,000. COGS is $180,000 covering cloud hosting ($96,000), customer support team ($60,000), and payment processing fees ($24,000). Operating expenses are $720,000 including engineering salaries ($420,000), sales and marketing ($180,000), office and administration ($72,000), and tools and infrastructure ($48,000). Gross profit = $1,200,000 − $180,000 = $1,020,000. Gross margin = 85%. Net profit = $1,020,000 − $720,000 = $300,000. Net margin = 25%. Markup = $1,020,000 / $180,000 × 100 = 566.67%. SaaS businesses are known for exceptionally high gross margins because the marginal cost of serving each additional customer is minimal. The 85% gross margin and 25% net margin are both within the strong range for SaaS, and investors would view these figures favorably.
Frequently Asked Questions
Business Disclaimer
These calculators provide estimates for planning and educational purposes. Actual business results depend on many factors not captured by these tools, including market conditions, competition, and operational efficiency. Consult with a qualified business advisor or accountant for decisions affecting your business.
Sources & References
- ↗U.S. Small Business Administration (SBA) — Business formation data, loan programs, and small business statistics
- ↗Bureau of Labor Statistics (BLS) — Wage data, productivity statistics, and employment cost index
- ↗U.S. Census Bureau — Business statistics, income data, and demographic information
Related Calculators
Markup & Margin Calculator
Calculate markup percentage, gross margin, and profit per unit. Enter cost and selling price, or cost and markup percentage, to see a full breakdown.
ROI Calculator
Calculate your return on investment including ROI percentage, profit or loss, annualized ROI, and monthly equivalent return. Enter your initial investment and final value to see a full breakdown.
Break-Even Calculator
Calculate your break-even point in units and revenue. Enter your fixed costs, variable cost per unit, and selling price to find out how many units you need to sell to cover all costs.
Freelancer Hourly Rate Calculator
Calculate the hourly rate you need to charge as a freelancer to meet your income goals. Factor in business expenses, time off, and billable hours to find your ideal rate.
People Also Calculate
Sales Tax Calculator
Calculate sales tax for any US state. Enter the price and tax rate to find the total cost, or reverse calculate the pre-tax price from a total amount.
Employee Cost Calculator
Calculate the true cost of hiring an employee including salary, benefits, taxes, and overhead. Understand the real cost beyond just the base salary.
Learn More
Profit Margin Calculator Guide: How to Calculate Gross, Operating, and Net Profit Margin
Master profit margin calculations for your business. Understand the difference between gross, operating, and net margins, how they differ from markup, industry benchmarks, and strategies to improve your bottom line.
11 min readBlog ArticleUS Tariff Calculator 2026: How to Estimate Import Duties and Landed Costs
US tariffs have changed dramatically in 2026. Learn the current rates, how tariff stacking works, and how to calculate your true import costs with our free tariff calculator.
10 min readEmbed this calculator on your site — free
One iframe. No sign-up, no cost. Works on WordPress, Webflow, Squarespace, and any CMS. Learn more →