Margin calculator (how to calculate profit margin)
Use our margin calculator to calculate profit margin and understand how margin impacts profitability. Learn the profit margin formula, how to calculate margin percentage, and how businesses use margin to support better financial decisions.
How much of your business’s revenue do you actually keep as profit?
If your costs increase or your pricing changes, how will that affect your profitability?
And do you know the difference between margin and markup when evaluating business performance?
Whether you’re launching a new product, reviewing your pricing strategy, or evaluating the financial health of your business, understanding profit margin is essential.
Use our margin calculator to quickly work out your profit margin, compare profitability across products and services, and assess how changes in pricing or costs may impact your bottom line.
This guide also covers how to calculate profit margin using the profit margin formula, gross margin versus net profit margin, and how margin relates to markup and net profitability.
Key takeaways
- A margin calculator helps businesses calculate profit margin as a percentage of revenue.
- The profit margin formula shows how much of each sale remains as profit after direct costs are deducted.
- Gross profit margin measures profitability after the cost of goods sold, while net profit margin includes operating expenses and taxes.
- Understanding margin can help businesses evaluate profitability, set financial goals, and support budgeting decisions.
- Margin and markup use similar inputs but provide different insights, making it important to understand the difference between the two metrics.
Here’s what we’ll cover
- Margin calculator
- What is margin?
- How to calculate selling price using margin
- How to calculate cost price from selling price and margin
- What’s the difference between gross profit margin and net profit margin?
- Should I use gross profit or net profit?
- What is the difference between margin and markup?
- What do I need to consider when I calculate margin?
- The importance of margin and how it’s used in business
- Profit margin FAQs
Margin calculator
You can use this margin calculator to evaluate the profitability of your business, a specific product, or a service offering.
To calculate the margin, enter your selling price and cost price.
Select “Calculate” to view your margin percentage. You can also switch between options to calculate selling price or cost price based on your desired margin.
What is a profit margin calculator used for?
A profit margin calculator helps businesses determine how much profit remains from a sale after costs have been deducted. It expresses that profit as a percentage.
Businesses commonly use profit margin calculators to:
- Calculate profit margin across products, services, or the entire business.
- Set pricing targets based on desired profitability.
- Evaluate how changes in costs affect margins.
- Compare profitability across product lines or business units.
- Support pricing and financial planning decisions.
Using a margin calculator can help businesses understand profitability, assess pricing strategies, and make more informed financial decisions.
What is margin?
Margin represents your profit as a percentage of an item’s selling price. Also known as gross profit margin, it reflects the percentage of revenue that remains after accounting for the cost of producing and delivering the item. In simple terms, it shows how much of each sale your business keeps as profit.
Margin formula
Margin is calculated by subtracting the cost price from the selling price, dividing the result by the selling price, and multiplying by 100.
To calculate margin:
Step 1: Determine your selling price
Start with the amount paid by the customer.
Selling Price = $100
Step 2: Identify your costs
Determine the direct costs associated with producing or delivering the product or service.
Cost Price = $60
Step 3: Calculate profit
Subtract the cost price from the selling price.
Profit = $100 – $60 = $40
Step 4: Calculate profit margin percentage
Divide profit by the selling price and multiply by 100.
Profit Margin = ($40 ÷ $100) × 100
Profit Margin = 40%
This means that 40% of every dollar earned remains as profit after direct costs have been paid.
Understanding how to calculate margin can help businesses evaluate profitability, compare products and services, and make more informed pricing and financial decisions.

How to calculate selling price using margin
Do you want to know what selling price is required to achieve a specific profit margin?
This is useful when you have a target margin in mind and need to determine the price required to achieve it.
Businesses often use this approach when setting profitability goals or evaluating the financial viability of a product or service.
If you know the desired margin and the cost price, you can calculate the selling price using the following formula:
Selling price formula
For example, if an item costs $150 to produce and you want a profit margin of 25%:
Selling Price = $150 ÷ (1 – 0.25)
Selling Price = $200
To achieve a 25% margin, the product would need to be sold for $200.
Understanding how margin affects selling price can help businesses evaluate profitability targets and assess the financial impact of pricing decisions.
How to calculate cost price from selling price and margin
Sometimes businesses need to determine the maximum cost they can absorb while maintaining a target profit margin.
This can be useful when evaluating suppliers, analyzing competitors, or determining whether a product remains financially viable as costs change.
If you know the selling price and desired margin, you can calculate the maximum cost price using this formula:
Cost price formula
For example, if a product sells for $500 and you want a margin of 30%:
Cost Price = (1 – 0.30) × $500
Cost Price = $350
This means your total production cost should not exceed $350 if you want to maintain a 30% margin.
Calculating cost price from margin helps businesses understand profitability thresholds and identify when rising costs may require pricing adjustments.
What’s the difference between gross profit margin and net profit margin?
Gross profit margin measures profitability after the cost of goods sold (COGS) has been deducted, while net profit margin measures profitability after all business expenses have been accounted for, including operating costs, taxes, and interest.
Gross profit margin focuses on product or service profitability, while net profit margin provides a broader view of overall business performance.
Understanding the difference helps businesses choose the right metric for the right decision.
| Gross profit margin | Net profit margin |
|---|---|
| Measures gross profit as a percentage of revenue. | Measures net profit as a percentage of revenue. |
| Includes cost of goods sold (COGS) only. | Includes COGS, operating expenses, taxes, and interest. |
| Useful for evaluating product profitability and production efficiency. | Useful for evaluating overall business profitability. |
| Helps assess pricing and cost management. | Helps assess financial health and long-term sustainability. |
We covered how to calculate margin (or gross profit margin) above.
Net profit margin uses a different formula because it includes operating expenses, taxes, and interest in addition to the cost of goods sold.
Net profit margin formula
For example, if a business generates $100 in revenue, has COGS of $25, and incurs an additional $25 in operating expenses, taxes, and interest, its net profit margin would be:
Net Profit Margin = 50%
Unlike gross profit margin, which only accounts for COGS, net profit margin reflects overall business profitability after all major expenses have been deducted.
Both metrics are valuable, but they answer different questions about profitability.
Should I use gross profit or net profit?
It depends on the question you’re trying to answer. If you want to evaluate the profitability of specific products or services, use gross profit margin. If you’re trying to understand overall business performance, use net profit margin, which accounts for operating expenses, taxes, and other business costs.
When to use gross profit margin
Use gross profit margin when you want to:
- Compare product profitability.
- Evaluate production efficiency.
- Analyze pricing decisions.
- Understand the impact of changes in labor or material costs.
- Assess profitability before overhead expenses are considered.
A gross margin calculator can help identify how cost changes or pricing adjustments affect profitability at the product level.
When to use net profit margin
Use net profit margin when you want to:
- Evaluate overall financial health.
- Monitor profitability trends over time.
- Forecast future profits.
- Assess operational efficiency across the organization.
- Support financing or investment discussions.
Because net profit margin reflects all major business expenses, it is commonly used by lenders, investors, and leadership teams when evaluating company performance.
What is the difference between margin and markup?
Margin measures profit as a percentage of revenue, while markup measures profit as a percentage of cost.
| Margin | Markup |
|---|---|
| Measures profit as a percentage of revenue. | Measures profit as a percentage of cost. |
| Based on selling price. | Based on cost price. |
| Used to evaluate profitability. | Used to establish selling prices. |
| Margin = ((Selling Price – Cost Price) ÷ Selling Price) × 100 | Markup = ((Selling Price – Cost Price) ÷ Cost Price) × 100 |
For example, if a product costs $60 and sells for $100:
- Margin = 40%
- Markup = 66.67%
Markup vs. margin calculation example
Suppose you own a flower shop and want to determine the selling price of a custom bouquet.
The bouquet costs $10 to create.
Example using markup
If you apply a markup of 60%:
Selling Price = $10 + ($10 × 60%)
Selling Price = $16
A 60% markup results in a selling price of $16.
Example using margin
If your goal is a 60% profit margin:
Selling Price = $10 ÷ (1 – 0.60)
Selling Price = $25
A 60% margin requires a selling price of $25.
This example demonstrates why a markup percentage and a margin percentage produce different results, even when they use the same cost price.

When should I use margin and when should I use markup?
Margin is used to evaluate profitability, while markup is used to set competitive, yet profitable prices.
Use markup when setting prices
Markup starts with cost and is typically used when:
- Establishing initial pricing.
- Determining target selling prices.
- Evaluating competitive pricing structures.
- Calculating price increases above cost.
Use margin when evaluating profitability
Margin starts with revenue and is typically used when:
- Evaluating profitability.
- Monitoring financial performance.
- Comparing products or services.
- Measuring operational efficiency.
- Supporting financial reporting and forecasting.
While markup helps answer the question, “What should I charge?”, margin helps answer the question, “How profitable is this sale?”
What do I need to consider when I calculate margin?
Profit margin calculations are only as accurate as the information used to produce them. When evaluating margin, several factors can influence the result and affect long-term profitability.
1. Selling price
Confirm the market will support the selling price.
Competitor pricing and customer perception are 2 factors that affect whether customers will pay the price.
2. COGS
Economic conditions and market trends may change the cost of labor or materials over time. Monitor your COGS so you can take action if necessary.
For example, if your COGS increases, you would need to either reduce your costs, or increase your selling price to maintain the same margin.
3. Growth stage
The age or growth stage of the business may affect the margin.
For example, new businesses often experience lower profit margins than established companies.
In the early days, businesses tend to have fewer customers and limited opportunities to earn revenue.
Over time, they move towards operating more efficiently, leading to a higher profit margin.
4. Industry standards
Profit margins aren’t consistent from industry to industry.
To determine whether your margin is good or sustainable, review industry-specific data.
The importance of margin and how it’s used in business
Margin is one of the most widely used profitability metrics because it helps businesses understand how efficiently revenue is converted into profit.
Beyond simple calculations, margin provides valuable insight into financial performance, operational efficiency, and long-term business sustainability.
It’s also frequently reviewed alongside metrics found in a profit and loss statement to evaluate business performance.
Evaluate product and service profitability
Not all products contribute equally to profit.
A product with lower sales volume may generate more profit than a high-volume product with lower margins.
Analyzing margin at the product or service level helps businesses identify which offerings generate the strongest returns and where resources should be focused.
Support financial planning and budgeting
Profit margin plays an important role in forecasting and budgeting.
Businesses often use historical margin performance to estimate future profits, evaluate growth opportunities, and establish financial targets.
When margins begin to decline, organizations can investigate whether rising costs, pricing pressures, or operational inefficiencies are contributing factors.
Combining financial planning and budgeting software with strong forecasting processes and margin analysis will help you make better informed business decisions.
Monitor business performance over time
Tracking profit margin consistently provides valuable insight into overall business health.
A stable or improving margin may indicate strong cost control and operational efficiency. A declining margin can highlight challenges that require attention before they impact profitability more significantly.
Many businesses monitor margin monthly, quarterly, and annually to identify trends and evaluate performance against strategic goals.
Improve profitability without solely increasing revenue
Revenue growth alone does not guarantee higher profits.
Understanding the difference between cash flow versus profit can provide additional insight into overall financial health.
In some situations, improving operational efficiency or reducing costs can have a greater impact on profitability than increasing sales volume.
Margin analysis helps businesses understand whether profitability improvements are being driven by stronger revenue, lower costs, or a combination of both.
Strengthen financial reporting and decision-making
Margin is frequently used alongside other financial metrics to evaluate business performance.
Combined with revenue growth, cash flow, operating expenses, and profitability reporting, margin helps provide a more complete picture of financial health.
This information supports better decision-making across pricing, operations, forecasting, and long-term planning.

Final thoughts
Understanding how to calculate profit margin is essential for evaluating profitability, monitoring financial performance, and making informed business decisions.
Whether you’re reviewing a single product, comparing service lines, or evaluating the health of your entire organization, margin provides valuable insight into how efficiently revenue is converted into profit.
Use our margin calculator to quickly calculate profit margin, validate your own calculations, and better understand the relationship between costs, pricing, and profitability.
For businesses looking to improve financial visibility and support more accurate forecasting, budgeting, and profitability analysis, accounting software can provide the real-time insights needed to make confident decisions and support sustainable growth.
Profit margin FAQs
A profit margin calculator is a tool that calculates profit as a percentage of revenue using selling price and cost price inputs. Businesses use it to evaluate profitability, compare products or services, and understand how pricing or cost changes affect profit.
Profit margin helps businesses understand how efficiently revenue is converted into profit. It is commonly used to evaluate profitability, monitor financial performance, and support budgeting and forecasting decisions.
Profit margin can be affected by selling prices, production costs, supplier pricing, market conditions, and operational efficiency. Regular monitoring can help businesses identify changes that may impact profitability.
Businesses typically review profit margin regularly as part of financial reporting and performance monitoring. Monthly, quarterly, and annual reviews can help identify trends, evaluate profitability, and support pricing, budgeting, and forecasting decisions.
No. Margin measures profit as a percentage of selling price, while markup measures profit as a percentage of cost.
Your profit margin is key to business growth as it will directly impact how much money you’re able to reinvest in growth initiatives. Higher margins can provide additional resources for hiring, product development, expansion, technology investments, and other strategic growth priorities.
Monitoring margin over time helps businesses balance growth objectives with long-term profitability.
Subscribe to our Sage Advice Newsletter
Get our latest business advice delivered directly to your inbox.