A margin calculation turns your income statement into three useful signals: what remains after delivering your service, what remains after operating overhead, and what remains after all expenses. Use the formulas below to calculate each one from the same revenue figure.
What is a profit margin calculator and what does it tell you?
A profit margin calculator divides a type of profit by revenue and expresses the result as a percentage. You can do the calculation with a calculator or a simple spreadsheet. The key is using consistent figures for the same accounting period.
The three margins answer different questions:
- Gross profit margin: How much remains after direct costs to deliver your service?
- Operating profit margin: How much remains after operating expenses, or overhead?
- Net profit margin: How much remains after all expenses, including interest and taxes?
Use revenue, not profit, as the denominator each time. If you have no revenue for the selected period, the percentage cannot be calculated.
How do you calculate gross profit margin step by step?
Gross profit margin shows the share of revenue remaining after direct service-delivery costs.
Gross profit margin = (Revenue − Cost of goods sold) ÷ Revenue × 100
For a service business, cost of goods sold (COGS), sometimes called cost of sales, means the direct costs assigned to delivering the services sold during the period. Depending on your business and accounting policy, these may include subcontractors, job materials, or delivery labor.
Steps:
- Choose a period, such as one month or one quarter.
- Find revenue for that same period.
- Subtract the direct delivery costs recorded for that period.
- Divide the result by revenue and multiply by 100.
For example, if revenue is $100,000 and direct service costs are $60,000, gross profit is $40,000. Divide $40,000 by $100,000: gross profit margin is 40%.
That 40% is the portion of revenue left to cover overhead and, if enough remains, profit. It is not the same as cash available in your bank account.

How do you calculate operating and net profit margin?
Operating margin shows what remains after operating expenses. Net margin shows what remains after all expenses.
Operating margin = (Revenue − COGS − Operating expenses) ÷ Revenue × 100
Net profit margin = (Revenue − All expenses) ÷ Revenue × 100
Operating expenses typically include overhead not assigned to delivering a particular service, such as rent, administrative costs, insurance, and software. Net income also accounts for other applicable items, such as interest and taxes.
$1.5 million agency
An agency reports $1.5 million in revenue for one period:
- Revenue: $1,500,000
- Direct delivery costs: $900,000
- Gross profit: $1,500,000 − $900,000 = $600,000
- Gross margin: $600,000 ÷ $1,500,000 × 100 = 40%
- Operating expenses: $480,000
- Operating profit: $600,000 − $480,000 = $120,000
- Operating margin: $120,000 ÷ $1,500,000 × 100 = 8%
- Interest and taxes: $60,000
- Net profit: $120,000 − $60,000 = $60,000
- Net margin: $60,000 ÷ $1,500,000 × 100 = 4%
The figures are illustrative. Actual outcomes depend on a business’s revenue, expenses, accounting method, and classifications.

A result like this gives you a place to investigate. If gross margin looks solid but operating margin is much lower, overhead is an important part of the gap. If operating margin is positive but net margin is lower, review interest, taxes, and other non-operating items with your accounting professional.
For a quick first look at possible profit gaps, the Profit Leak Snapshot lets you assess your business in 3 minutes.
What is the difference between margin and markup when you calculate?
Margin is profit divided by the selling price. Markup is profit divided by cost. They describe the same sale from different bases, so the percentages are not interchangeable.
Assuming a cost of $100:
| Markup on $100 cost | Selling price | Profit | Margin on selling price |
|---|---|---|---|
| 25% | $125 | $25 | 20% |
| 50% | $150 | $50 | 33.3% |
| 100% | $200 | $100 | 50% |
For example, a 50% markup on a $100 cost produces a $150 selling price. The $50 profit is 33.3% of that selling price, not 50%.
If you’re setting prices, see our guide to common pricing mistakes and why owners undercharge. It covers pricing decisions that can affect the amount left after delivery costs.
What can a margin calculation miss?
A margin percentage is a summary, not a full diagnosis. It can hide three important issues:
- Service or customer mix: One high-margin service can mask weaker margins on another. Where possible, calculate margins by service line, project, or customer segment as well as for the whole business.
- Seasonality: A strong month may not represent the full year. Compare the same month year over year or review a rolling period alongside monthly results.
- Classification errors: Moving a cost between COGS and overhead changes gross and operating margin, even when total expenses and net profit stay the same. Keep categories consistent, and ask a licensed accounting professional how costs should be classified for your books and reporting.
Accounting treatment depends on your circumstances. This guide is for general business education, not accounting, tax, or legal advice. The IRS’s small-business guidance explains record keeping and tax topics; consult a licensed professional for advice about your specific records or filings.
How often should you calculate your margins?
Calculate all three margins monthly using the same accounting method and a closed, reconciled period. Then compare the trend over several months, not just the latest result. A single percentage can move because of timing, project mix, or a one-off expense.
The U.S. Small Business Administration’s business guide includes resources for managing business finances. For practical context on cost pressure, the Federal Reserve Banks’ 2025 Report on Employer Firms reported that 75% of surveyed firms cited rising costs of goods, services, or wages as a financial challenge. That survey finding does not set a target margin for your business; it reinforces why tracking your own numbers matters.
A simple spreadsheet-style formula reference
Set up one row per period and keep the inputs and outputs separate:
| Column | Entry or formula |
|---|---|
| A | Period |
| B | Revenue |
| C | Direct service costs / COGS |
| D | Gross profit: B − C |
| E | Gross margin: D ÷ B × 100 |
| F | Operating expenses |
| G | Operating profit: D − F |
| H | Operating margin: G ÷ B × 100 |
| I | Interest, taxes, and other applicable expenses |
| J | Net profit: G − I |
| K | Net margin: J ÷ B × 100 |
If your accounting records include other income or expense items, adapt the net-profit calculation with your accounting professional. Use the same period and accounting basis across the row, and do not divide by zero when revenue is blank or zero.
Review the three results together. Gross margin points to delivery economics. Operating margin adds overhead. Net margin shows what remains after all expenses. Then investigate the line items behind any movement before deciding what to change.
Frequently asked questions
- What is the basic formula for profit margin?
Divide profit by revenue and multiply by 100. For gross, operating, and net margin, use the corresponding profit figure and the same period’s revenue. - Should a service business include labor in COGS?
It depends on the business’s accounting policy and how costs are assigned. Keep classifications consistent and consult a licensed accounting professional about your records. - What is the difference between gross margin and net margin?
Gross margin accounts for direct service-delivery costs. Net margin accounts for all expenses, including operating expenses and applicable interest and taxes. - How often should I calculate profit margins?
Calculate them monthly after closing and reconciling the period. Compare trends across months and use consistent accounting methods and classifications.
If you want to check where potential profit gaps may sit, use the 3-minute Profit Leak Snapshot. To work through a practical improvement plan, you can also explore the free 7-Day Sales and Profit Sprint.
About Us: We write practical profit and cash-flow guidance for service-business owners who want more of every dollar they earn to stay in the business. Every article is grounded in financial data, industry benchmarks, and the three profit levers we help members act on inside the platform: sales revenue, cost of sales, and overhead.
[…] the profit margin calculator guide to work through the margin […]
[…] For a fuller step-by-step walkthrough of the calculation itself, including worked examples for each margin level, see our guide to how to calculate profit margin. […]