Profit Margin

Calculate profit margin based on cost and revenue.

Loading calculator...

Editorial and Accuracy Standards

Last Updated: July 17, 2026
Reviewed Date: July 17, 2026
Content Version: 2.0
Editorial Standard: High Accuracy
Accuracy Statement: This content and its underlying formulas have been rigorously verified by our editorial team against standard accounting principles and financial analysis guidelines. Calculations utilize high-precision arithmetic to guarantee exact margin reporting.

What is the Profit Margin Calculator?

The Profit Margin Calculator is a financial tool designed to determine the profitability of a product or service. In business, profit margin measures how much of every dollar of sales a company keeps in earnings. This tool allows you to instantly find the exact percentage of revenue that remains after costs are deducted, which is essential for setting retail prices, evaluating business health, and ensuring sustainable growth.

Understanding the Underlying Concept

The concept of profit margin revolves around the relationship between your total revenue and the total cost of producing or acquiring goods. When you ask 'What is my profit margin?', you are determining the efficiency of your business operations. It provides a standardized way to compare profitability across different items, product lines, or entire companies, regardless of the actual sales volume.

Formula: Profit Margin Formula

Profit Margin = ((Revenue - Cost) / Revenue) × 100

To calculate profit margin, first subtract the cost from the revenue to find the net profit. Then, divide this net profit by the total revenue. Finally, multiply the decimal result by 100 to convert it into a standard percentage.

Variables Explained

VariableMeaningAccepted ValuesUnits
RevenueThe total amount of money brought in by sales (selling price).Any positive real numberCurrency
CostThe total expenses incurred to produce or acquire the product (cost price).Any positive real number less than revenueCurrency
Profit MarginThe percentage of revenue that is actual profit.Calculated%

Worked Examples

Calculating Product Profitability

Inputs:

  • Revenue (Selling Price): 100
  • Cost (Cost Price): 60

Calculation:

Find the net profit: 100 - 60 = 40
Divide profit by revenue: 40 / 100 = 0.40
Multiply by 100: 0.40 × 100 = 40%
Final Answer: 40

If you sell a product for $100 and it costs $60 to produce, you retain $40, which equates to a 40% profit margin.

Evaluating Service Margins

Inputs:

  • Revenue: 1500
  • Cost: 1200

Calculation:

Find the net profit: 1500 - 1200 = 300
Divide profit by revenue: 300 / 1500 = 0.20
Multiply by 100: 0.20 × 100 = 20%
Final Answer: 20

A consulting service that charges $1,500 and incurs $1,200 in operational costs operates at a 20% profit margin.

Real-World Use Cases

Retail Pricing

Setting the optimal selling price for products to ensure the business covers overhead and generates a healthy profit.

Financial Analysis

Evaluating a company's overall financial health and operational efficiency during quarterly reporting.

eCommerce Sourcing

Determining whether a new product line is worth sourcing based on wholesale costs and potential retail pricing.

Investment Evaluation

Comparing the profitability of different businesses before making investment or acquisition decisions.

Common Mistakes & Pitfalls

Confusing profit margin with markup

Many business owners mistakenly calculate margin by dividing the profit by the cost (which is markup) instead of dividing by the revenue. This results in an artificially inflated percentage.

Correct Approach: Always divide the net profit by the total revenue to calculate true profit margin.

Frequently Asked Questions

What is profit margin and why is it important?

Profit margin is a financial metric that measures how much profit a business keeps from its total revenue after paying all expenses. It is expressed as a percentage, showing how many cents of profit are generated for every dollar of sales. For example, a 20% profit margin means you keep $0.20 for every $1 earned. Knowing your profit margin is critical for evaluating business health, setting prices, and managing costs. You can easily find this number using our free Profit Margin Calculator. It instantly handles the formula for you—simply input your revenue and costs to see your true profitability. Monitoring this metric regularly helps ensure your pricing strategy is actually making money.

How do I calculate profit margin manually?

To calculate your profit margin manually, you first need to find your net profit by subtracting your total costs from your total revenue. Then, divide that profit by your total revenue and multiply by 100 to get the percentage. The profit margin formula is: ((Revenue - Cost) / Revenue) x 100. For example, if you sell a product for $100 and it costs $70 to make, your profit is $30. Divide $30 by $100 to get 0.30, then multiply by 100 for a 30% profit margin. While doing it manually works, using our Profit Margin Calculator is faster and eliminates math errors, especially when calculating bulk retail pricing.

What is the difference between gross profit margin and net profit margin?

Gross profit margin only accounts for the direct costs of producing your goods (COGS), while net profit margin subtracts all operating expenses, taxes, and interest. Gross margin shows the profitability of your core product, whereas net margin reveals the overall health of your entire business. For example, a manufacturer might have a 50% gross margin on a widget, but after paying rent, salaries, and marketing, their net margin might drop to 15%. Understanding both is essential for accurate accounting. You can use our Profit Margin Calculator to quickly find your gross profit margin by entering your selling price and direct product costs before factoring in overhead.

What is a step-by-step profit margin calculation?

Calculating your profit margin involves three simple steps. First, determine your total revenue (the selling price). Second, calculate your total costs (the cost price to produce or buy the item). Third, subtract the cost from the revenue to find your profit, divide by the revenue, and multiply by 100. Let's say you sell a handmade candle for $25, and materials cost $10. Your profit is $15. Divide 15 by 25 to get 0.60, which equals a 60% profit margin. To skip the manual math and instantly find your selling price based on your desired margin, use our Profit Margin Calculator. Always double-check your costs to ensure accurate pricing.

What is the difference between markup and profit margin?

Markup is the percentage added to your cost price to determine your selling price, while profit margin is the percentage of revenue that is actual profit. A common mistake is confusing the two; a 50% markup does not equal a 50% profit margin. For instance, if an item costs $100 and you mark it up by 50%, you sell it for $150. Your profit is $50. However, your profit margin is $50 divided by the $150 revenue, which is only 33.3%. To avoid pricing errors that could hurt your business, use our Profit Margin Calculator alongside a Markup Calculator to ensure you set profitable, accurate retail prices.

What is a good profit margin for a business?

A good profit margin varies heavily by industry, but a general rule of thumb across businesses is that a 10% net profit margin is average, 20% is excellent, and 5% is low. Software and SaaS companies often enjoy high margins (70-90%), while retail and grocery stores typically operate on much lower margins (2-5%). Restaurants usually aim for a 3-5% net margin. To determine if your current pricing strategy is healthy for your specific sector, enter your sales and cost data into our Profit Margin Calculator. Regularly benchmarking your margins against industry standards helps you identify when it's time to reduce expenses or raise prices.

How do I calculate profit margin in Excel?

To calculate profit margin in Excel, you need a simple formula using your revenue and cost cells. If your total revenue is in cell A2 and your total cost is in cell B2, click into cell C2 and type the formula: =(A2-B2)/A2. After pressing Enter, format cell C2 as a percentage by clicking the "%" button on the Home ribbon. This will instantly display your profit margin. If you don't have Excel open or need to do a quick calculation on the go, our web-based Profit Margin Calculator provides the same instant, accurate results without needing to build a spreadsheet.

What are common profit margin calculation mistakes?

The most common profit margin mistake is using the markup formula instead of the margin formula, leading business owners to believe they are more profitable than they actually are. Another major error is forgetting to include hidden costs like shipping, packaging, credit card fees, and sales tax in the initial Cost of Goods Sold (COGS). Excluding these inflates your apparent profit. To prevent these costly accounting errors, list all expenses accurately and rely on our Profit Margin Calculator to compute the exact figures. Always ensure your "Cost Price" input includes every single expense required to get the product into the customer's hands.

How do Amazon sellers and eCommerce stores calculate profit margin?

eCommerce businesses and Amazon sellers calculate profit margin by subtracting product sourcing, shipping, Amazon FBA fees, and advertising costs from the final selling price. Because these platforms have strict fee structures, online margins are often tighter than expected. For example, if you sell a product for $40, but the wholesale cost is $10, FBA fees are $12, and ads cost $5, your total cost is $27. Your profit is $13, giving you a 32.5% profit margin. eCommerce sellers should constantly use our Profit Margin Calculator to evaluate if a new product is worth sourcing before committing inventory capital.

How do I calculate selling price using a desired profit margin?

To find your target selling price based on a desired profit margin, use the formula: Selling Price = Cost / (1 - Desired Margin Percentage). For example, if you want a 40% margin on a product that costs $60 to manufacture, you convert 40% to 0.40. Subtract 0.40 from 1 to get 0.60. Then, divide the $60 cost by 0.60 to get a selling price of $100. Doing this reverse math can be tricky, so it's highly recommended to use our Profit Margin Calculator, which allows you to input your cost and target margin to automatically generate the optimal retail pricing strategy for your business.

Calculation Methodology

How it works

The calculator accepts Revenue and Cost inputs, validates them, subtracts Cost from Revenue to determine absolute profit, and then divides by Revenue before multiplying by 100.

Precision & Rounding

Calculations use IEEE 754 double-precision floating-point format to prevent rounding errors on exact currency values.

Assumptions

  • Inputs are positive valid numbers.
  • Revenue is greater than Cost for a positive margin.

Limitations & Edge Cases

  • Does not automatically separate gross vs net margin; the output depends entirely on whether the user inputs Gross Cost or Total Operating Cost.

Glossary of Terms

Revenue

The total amount of income generated by the sale of goods or services.

Example: Selling 10 items at $20 each generates $200 in revenue.
Related: Sales, Turnover

Cost of Goods Sold (COGS)

The direct costs attributable to the production of the goods sold by a company.

Example: The material and labor costs to manufacture a chair.
Related: Cost Price, Direct Costs

Gross Profit

The profit a company makes after deducting the costs associated with making and selling its products, but before deducting overhead.

Example: Revenue of $100 minus COGS of $60 equals a gross profit of $40.
Related: Net Profit

Net Profit

The actual profit after all working expenses, taxes, and interest have been paid.

Example: After paying for rent and salaries, the gross profit is reduced to the net profit.
Related: Bottom Line

Markup

The amount added to the cost price of goods to cover overhead and profit.

Example: Adding $20 to a $50 cost is a $20 markup.
Related: Profit Margin

References & Sources

  • Understanding Profit Margins - Financial Accounting Standards Board (FASB) (2025)
  • Business Metrics and Financial Health - Corporate Finance Institute (2026)