Profit Margin Calculator
Instantly calculate profit margin, markup percentage, and gross profit. Find the selling price you need for any target margin.
How it works: Enter what the product costs you and the profit margin you want. The calculator will show you the selling price to charge.
Revenue
$0.00
Profit
$0.00
Margin %
0.00%
Markup %
0.00%
Cost Ratio
0.00%
How to Calculate Profit Margin
Profit margin is one of the most important measures of profitability for any business. It tells you what percentage of your sales revenue the business actually keeps as profit after costs are taken out. Understanding your margin is important to know whether your pricing strategy is working, whether your business costs are under control, and how your business compares against others in your sector.
There are two main types of profit margin — gross profit margin and net profit margin — and they measure slightly different things. This calculator focuses on gross margin, which is calculated by subtracting the cost of goods sold (COGS) from revenue. Net profit margin goes further and subtracts all business costs including operating expenses, taxes, and interest.
Profit Margin Formula — Gross Profit Margin
Gross profit margin is expressed as a percentage of revenue. The formula is:
Margin % = (Profit ÷ Revenue) × 100
Example: ($1,000 − $600) ÷ $1,000 × 100 = 40% gross margin
This tells you that for every $1 of sales revenue, the business keeps $0.40 as gross profit after subtracting the cost of production or cost of goods sold.
Net Profit Margin
Net profit margin goes a step further than gross margin. Rather than just subtracting production costs, net profit margin accounts for all expenses — operating costs, interest, taxes, and any other business costs. The formula is:
Or expressed another way: net profit divided by revenue, multiplied by 100.
Net income is your revenue minus all expenses — not just the cost of goods. This makes margin a fuller measure of a business's financial health than gross margin alone. A business can have a high gross margin but a poor net profit margin if its operating costs are too high.
Markup Formula
Markup is profit expressed as a percentage of cost rather than revenue. It is always higher than margin for the same transaction because it is based on a smaller number — the cost rather than the selling price:
Example: ($1,000 − $600) ÷ $600 × 100 = 66.67% markup
Markup is commonly used to set the selling price for products or services when you know your cost of production and want to add a fixed profit percentage on top. The selling price is simply the cost with the desired markup added to the cost.
Finding the Selling Price from a Target Margin
Use the "Find Revenue" mode in this free profit margin calculator to work out the selling price needed to hit a target gross margin or markup. This is particularly useful when you want to set the price for your product based on cost and a desired profit margin:
Example: $60 cost at 40% margin → $60 ÷ 0.60 = $100 selling price
Example: $60 cost at 50% markup → $60 × 1.50 = $90 selling price
This approach to pricing strategy ensures your prices are always based on revenue and profit targets rather than guesswork.
Gross Margin vs Net Profit Margin — Key Differences
| Gross Margin | Net Profit Margin | |
|---|---|---|
| What it measures | Revenue minus cost of goods | Revenue minus all expenses |
| Formula | Gross Profit ÷ Revenue × 100 | Net Income ÷ Net Sales × 100 |
| Includes operating costs? | No | Yes |
| Best used for | Pricing decisions | Overall financial health |
Gross margin tells you how efficiently a business generates profit from its direct production costs. Net profit margin tells you how much of the revenue from sales actually flows through to the bottom line after every expense is accounted for. Both are important — businesses with high margins on a gross basis but poor net margins often have bloated operating costs that are eating into profitability.
Margin vs Markup — Quick Reference
Margin and markup are frequently confused, especially when setting prices. This table shows how they relate for common values:
| Margin % | Markup % | Example (Revenue / Cost) |
|---|---|---|
| 10% | 11.11% | $100 / $90 |
| 20% | 25% | $100 / $80 |
| 25% | 33.33% | $100 / $75 |
| 33.33% | 50% | $100 / $66.67 |
| 40% | 66.67% | $100 / $60 |
| 50% | 100% | $100 / $50 |
To convert margin to markup: Markup % = Margin % ÷ (100 − Margin %)
To convert markup to margin: Margin % = Markup % ÷ (100 + Markup %)
What Is a Good Profit Margin?
A good profit margin varies significantly by industry. Businesses with high profit margins tend to be in sectors with low production costs and strong pricing power — software companies, for example, can achieve net profit margins of 20–40%. Retail businesses, by contrast, often operate on net margins of just 2–5% due to high cost of goods and competition.
Here are some rough benchmarks:
| Sector | Typical Net Profit Margin |
|---|---|
| Software / SaaS | 20–40% |
| Professional services | 15–25% |
| Healthcare | 10–20% |
| Manufacturing | 5–10% |
| Retail | 2–5% |
| Restaurants / food | 3–9% |
If your margin percentage is below your sector average, it usually points to either a pricing strategy issue or cost of production being too high relative to the market. Use this gross margin calculator to model different price points and find where your numbers need to be.
How to Increase Your Profit Margin
There are two main levers to increase profit margin — raise prices or reduce costs. In practice, most businesses need to work on both. Here are some practical ways to increase profit margin:
- Increase revenue without increasing costs — this directly improves your margin percentage. Upselling, bundling products or services, or capturing more market share all help here.
- Reduce production costs — negotiating better supplier terms, reducing waste, or improving operational efficiency all lower your COGS and improve gross margin.
- Review your pricing strategy — many small businesses underprice their products or services, especially early on. Use this calculator to check whether your current prices are actually delivering your desired profit margin.
- Cut unnecessary business costs — on the net profit side, reviewing overheads and removing costs that don't directly contribute to revenue can significantly improve net income divided by revenue.
Profitability and Business Financial Health
Profit margin is important beyond just day-to-day pricing decisions. It's a key indicator of a business's financial health that lenders, investors, and accountants use to assess whether a business is viable and growing sustainably.
A declining margin percentage over time — even if total revenue is growing — can signal that costs are rising faster than sales revenue, or that pricing isn't keeping up with inflation. Monitoring your gross margin percentage and net profit margin regularly helps you catch these trends early and take action before they become serious problems.
Profit Margin for Accountants
Monitoring profit margins across clients helps accountants identify businesses that may need pricing adjustments or cost reduction strategies. A sudden drop in gross margin often points to rising supplier costs or discounting that's eroding profitability without the client realising.
Use this free profit margin calculator for quick margin checks when reviewing financial statements or advising clients on pricing. For automated margin tracking and financial reporting, tools like Xero and QuickBooks calculate gross margin and net profit margin in real time from your accounting data — explore our full accounting tools directory for more free tools and AI-powered solutions.
Frequently Asked Questions
Embed This Calculator
Add this calculator to your website. Copy the code below and paste it into your HTML.
<iframe src="https://accountingaitools.com/tools/profit-margin-calculator/?embed=true" width="100%" height="500" frameborder="0" title="Profit Margin Calculator"></iframe>
<p style="font-size:12px;text-align:center;margin-top:4px;">Powered by <a href="https://accountingaitools.com/tools/profit-margin-calculator/" target="_blank" rel="noopener">AccountingAITools</a></p>