How to Calculate Profit Margin on a Product: Formula, Examples, and Tips

Knowing how to calculate profit margin on a product is essential for running a profitable business.

Calculator Under Maintenance

We are currently perfecting this tool for maximum accuracy. Please check back shortly.

Explore Other Tools

About the How to Calculate Profit Margin on a Product: Formula, Examples, and Tips

Detailed guide and information

How to Calculate Profit Margin on a Product: Formula, Examples, and Tips

Knowing how to calculate profit margin on a product is essential for running a profitable business. Whether you sell physical products online, operate a retail store, manage an eCommerce website, or run a small business, understanding your profit margin helps you set the right prices and make better financial decisions.

A product may sell for $50 and cost $30 to purchase or manufacture, but that does not automatically mean your business earns $20 in profit. Other expenses, such as packaging, shipping, payment processing fees, advertising, and operating costs, can reduce your actual earnings.

The good news is that calculating profit margin is straightforward once you understand the formula. In this guide, you will learn how to calculate profit margin on a product, understand the difference between profit margin and markup, work through practical examples, and discover ways to improve profitability.

What Is Profit Margin on a Product?

Profit margin is the percentage of a product's selling price that remains as profit after subtracting the relevant costs.

For example, suppose you sell a product for $100 and your total costs are $60. Your profit is $40, meaning your profit margin is 40%.

Profit margin helps you understand how much money you keep from each sale rather than looking only at the amount of money earned.

A higher profit margin generally means more profit is retained from each dollar of revenue, assuming other factors remain equal.

Businesses use profit margins to:

  • Set competitive and profitable selling prices.
  • Compare the profitability of different products.
  • Identify products with high operating costs.
  • Evaluate discounts and promotional offers.
  • Make purchasing and inventory decisions.
  • Monitor business performance over time.

However, it is important to distinguish between gross profit margin, operating profit margin, and net profit margin because each measures profitability at a different level.

How to Calculate Profit Margin on a Product

The basic profit margin formula is:

Profit Margin (%) = (Profit ÷ Selling Price) × 100

To calculate profit margin, you need two main figures: your selling price and your profit.

First, subtract the relevant costs from the selling price to determine your profit. Then divide that profit by the selling price and multiply the result by 100.

Step 1: Determine the Selling Price

The selling price is the amount a customer pays for the product before any applicable adjustments, such as discounts or refunds.

For example, if you sell a product for $80, your selling price is $80. If you offer a discount and the customer pays $70, use the actual selling price of $70 when calculating the margin on that transaction.

For accurate business reporting, use revenue consistently and account for sales taxes collected on behalf of tax authorities separately where applicable.

Step 2: Calculate the Total Product Cost

Identify the costs associated with selling the product.

Depending on your business, these may include:

  • Purchase price or manufacturing cost.
  • Packaging materials.
  • Shipping and fulfillment costs.
  • Import duties and other landed costs.
  • Payment processing fees.
  • Marketplace selling fees.
  • Other expenses directly associated with the sale.

The costs you include depend on the type of margin you want to calculate. Gross margin, for example, generally uses the cost of goods sold, while a more complete product profitability calculation may include additional selling and operating expenses.

Step 3: Calculate the Profit

Subtract the costs included in your calculation from the selling price.

Profit = Selling Price − Costs

For example:

  • Selling price: $80
  • Total costs included: $48
  • Profit: $80 − $48 = $32

Your profit is $32 per unit before any expenses that have not been included in the calculation.

Step 4: Calculate the Profit Margin Percentage

Now divide the profit by the selling price and multiply by 100.

Profit margin = ($32 ÷ $80) × 100

Profit margin = 40%

This means you retain $40 in profit for every $100 of revenue under the cost assumptions used in this example.

You can also use our profit margin calculator to simplify the calculation once you have your selling price and costs.

Profit Margin Formula With an Example

Consider a small online business that sells reusable water bottles.

ItemAmount
Selling price$40
Product purchase cost$18
Packaging cost$2
Shipping cost paid by seller$4
Payment processing fee$1.20
Total included costs$25.20
Profit per unit$14.80

The profit margin calculation is:

Profit Margin = ($14.80 ÷ $40) × 100

Profit Margin = 37%

The business earns $14.80 per bottle before other expenses not included in the example, such as advertising, salaries, software subscriptions, and general overhead.

This distinction matters. If those additional expenses are substantial, the business's final net profit margin will be lower than 37%.

Types of Product Profit Margin

There are three common profit margin measurements. Understanding the differences helps you choose the right formula for your business.

1. Gross Profit Margin

Gross profit margin measures the percentage of revenue remaining after subtracting the cost of goods sold (COGS).

The cost of goods sold generally includes the direct costs of purchasing or producing the products sold.

Formula:

Gross Profit Margin = ((Revenue − COGS) ÷ Revenue) × 100

Example:

  • Selling price: $100
  • Cost of goods sold: $55
  • Gross profit: $45

Gross Profit Margin = ($45 ÷ $100) × 100 = 45%

Gross margin is useful when comparing products, evaluating supplier prices, and reviewing pricing strategies. It does not account for every business expense.

2. Operating Profit Margin

Operating profit margin measures the percentage of revenue remaining after operating expenses are deducted, in addition to the costs included in gross profit.

Operating expenses may include employee wages, rent, software, marketing, utilities, and administrative expenses. The precise calculation depends on the business's accounting classification.

Formula:

Operating Profit Margin = (Operating Profit ÷ Revenue) × 100

For example, suppose a business earns $45 in gross profit on $100 of revenue and incurs $20 in operating expenses attributable to that revenue.

Operating profit = $45 − $20 = $25

Operating Profit Margin = ($25 ÷ $100) × 100 = 25%

This measurement helps businesses evaluate how efficiently they manage their day-to-day operations.

3. Net Profit Margin

Net profit margin measures the percentage of revenue remaining after all applicable expenses have been deducted, including operating expenses, interest, and taxes.

Formula:

Net Profit Margin = (Net Profit ÷ Revenue) × 100

Example:

  • Revenue: $100
  • Total expenses: $85
  • Net profit: $15

Net Profit Margin = ($15 ÷ $100) × 100 = 15%

Net profit margin provides a broader view of overall business profitability. However, it is not always possible to calculate a precise net margin for an individual product because certain expenses, such as rent and administrative salaries, must be allocated across products or sales.

Profit Margin vs. Markup: What Is the Difference?

Profit margin and markup are closely related, but they are not the same.

Profit margin measures profit as a percentage of the selling price. Markup measures profit as a percentage of the cost.

Confusing these two measurements can lead to pricing mistakes, especially when you are setting prices to achieve a specific profit margin.

Profit Margin Formula

Profit Margin = (Profit ÷ Selling Price) × 100

Markup Formula

Markup = (Profit ÷ Cost) × 100

Consider a product that costs $60 and sells for $100.

MeasurementCalculationResult
Cost—$60
Selling price—$100
Profit$100 − $60$40
Profit margin$40 ÷ $100 × 10040%
Markup$40 ÷ $60 × 10066.67%

The profit is $40 in both calculations. The difference comes from the number used as the denominator.

A 40% profit margin does not mean a 40% markup. In this example, a 40% margin corresponds to a markup of 66.67%.

How to Convert Markup Into Profit Margin

If you know your markup percentage, you can convert it into a profit margin.

Profit Margin = Markup ÷ (1 + Markup)

Use markup as a decimal in this formula.

For example, a 50% markup is 0.50.

Profit Margin = 0.50 ÷ 1.50 = 0.3333

The corresponding profit margin is approximately 33.33%.

How to Calculate the Selling Price for a Desired Profit Margin

Sometimes you know your product cost and desired profit margin but need to determine the correct selling price.

In that case, use this formula:

Selling Price = Cost ÷ (1 − Desired Profit Margin)

Enter the desired profit margin as a decimal.

For example, suppose a product costs $30 and you want a 40% profit margin.

Selling Price = $30 ÷ (1 − 0.40)

Selling Price = $30 ÷ 0.60

Required selling price = $50

Check the result:

  • Selling price: $50
  • Cost: $30
  • Profit: $20
  • Profit margin: ($20 ÷ $50) × 100 = 40%

This approach is useful for retailers, manufacturers, online sellers, and service businesses that need to establish prices based on profitability targets.

Remember that if the $30 represents only the purchase cost, you should include other relevant costs before calculating the final selling price.

How to Calculate Profit Margin After a Discount

Discounts can reduce your profit margin significantly, even when the discount seems small.

Suppose you sell a product for $100 and its cost is $60. Your original gross profit margin is 40%.

Now imagine offering a 20% discount.

ItemAmount
Original selling price$100
Discount20%
Discounted selling price$80
Product cost$60
Profit after discount$20
Profit margin after discount25%

The discounted profit margin is:

($20 ÷ $80) × 100 = 25%

Although the selling price decreased by 20%, the profit margin fell from 40% to 25%.

This example demonstrates why businesses should calculate margins before running promotions. A discount that attracts more customers may still reduce overall profitability if the additional sales do not compensate for the lower profit per unit.

What Is a Good Profit Margin for a Product?

There is no single profit margin that is ideal for every product or industry.

A suitable margin depends on your business model, competition, operating costs, customer demand, inventory turnover, and the amount of risk involved in selling the product.

For example, a business selling high-volume everyday products may operate successfully with relatively low margins. A specialized product business may need higher margins to cover research, marketing, storage, or customer support costs.

Consider the following hypothetical examples:

Product typeSelling priceCostGross profit margin
Everyday accessory$20$1430%
Home decor item$50$3040%
Specialized product$120$6050%
Premium accessory$200$10050%

These figures are illustrative rather than industry benchmarks. They show how different prices and costs produce different gross margins.

When evaluating whether your margin is good, consider the following questions:

  • Does the margin cover your operating expenses?
  • Is your selling price competitive?
  • Are customers willing to pay the price?
  • Are returns, damaged products, or unsold inventory reducing profits?
  • Does the product generate enough profit to support your business goals?

A high gross margin does not automatically mean a product is more profitable overall. Sales volume, overhead, customer acquisition costs, and inventory management all matter.

Common Mistakes to Avoid When Calculating Product Profit Margin

Even a simple formula can produce misleading results if the underlying numbers are inaccurate.

1. Confusing Revenue With Profit

Revenue is the money generated from sales. Profit is what remains after the relevant costs are deducted.

If you sell 100 products for $25 each, your revenue is $2,500. That does not mean you earned $2,500 in profit.

2. Ignoring Additional Costs

Product purchase cost is only one part of the total cost of selling an item.

Depending on your business, you may also need to account for:

  • Shipping and fulfillment.
  • Packaging and labeling.
  • Marketplace commissions.
  • Payment processing fees.
  • Advertising costs.
  • Returns, refunds, and damaged inventory.

Be consistent about which expenses are included in each margin calculation.

3. Using Markup Instead of Margin

Applying a markup percentage directly to cost does not produce the same percentage profit margin.

If you want a particular margin, calculate the selling price using the margin formula rather than simply adding the same percentage to your cost.

4. Forgetting Discounts and Refunds

If your customers frequently use coupons or receive promotional discounts, calculate margins using actual selling prices rather than only the original listed price.

For business reporting, reconcile refunds and returns with your revenue and cost figures.

5. Assuming Every Product Has the Same Profitability

Two products may have similar selling prices but very different costs, return rates, advertising requirements, and sales volumes.

Review each product individually and compare both margin percentage and profit per unit.

Practical Tips to Improve Your Product Profit Margin

Once you know your current margin, you can look for ways to improve it without unnecessarily increasing prices.

Review Supplier Costs

Compare suppliers and negotiate better purchasing terms where possible. Bulk discounts can help, but avoid buying excess inventory that may remain unsold.

Optimize Shipping and Packaging

Review packaging sizes, shipping providers, and fulfillment arrangements. Reducing shipping expenses can improve margins while maintaining a good customer experience.

Evaluate Your Pricing Strategy

Research competitor prices and customer expectations. If your product offers better quality, features, service, or convenience, a higher price may be justified.

Monitor Discounts Carefully

Calculate the effect of a promotion before launching it. Determine how many additional sales you would need to offset the reduction in profit per unit.

Focus on Total Profit, Not Just Margin

A product with a 20% margin that sells 1,000 units may generate more total gross profit than a product with a 40% margin that sells only 100 units.

For example:

  • Product A: $10 profit per unit × 1,000 units = $10,000 gross profit.
  • Product B: $20 profit per unit × 100 units = $2,000 gross profit.

These examples assume the stated profit per unit is calculated on a consistent basis. Other expenses may change the final result.

The goal is to understand how margin, sales volume, and expenses work together.

Frequently Asked Questions

1. How do you calculate profit margin on a product?

Subtract the relevant costs from the selling price to determine profit. Divide the profit by the selling price and multiply by 100.

Formula: Profit Margin = ((Selling Price − Costs) ÷ Selling Price) × 100.

For example, a product sold for $80 with $48 in included costs generates $32 in profit and a 40% margin.

2. What is the easiest way to calculate profit margin?

The easiest method is to use a profit margin calculator. Enter the selling price and relevant cost figures, then calculate the profit and margin percentage using the formula.

For a manual calculation, subtract costs from the selling price, divide the result by the selling price, and multiply by 100.

3. How do you calculate a 30% profit margin?

To calculate a selling price that provides a 30% margin, divide the total relevant unit cost by 0.70.

For example, if your cost is $35:

Selling Price = $35 ÷ 0.70 = $50.

Your profit is $15, which represents 30% of the $50 selling price.

4. Is a 50% profit margin good?

A 50% margin can be attractive, but whether it is good depends on the industry, business expenses, competition, and sales volume.

Also, check whether you are measuring gross margin or net margin. A 50% gross margin may become much lower after operating expenses and other costs are deducted.

5. What is the difference between gross margin and net margin?

Gross margin measures the percentage of revenue remaining after subtracting the cost of goods sold. Net margin measures the percentage remaining after all applicable expenses, including operating costs, interest, and taxes.

Gross margin evaluates product-level or production profitability, while net margin provides a broader view of the business's overall financial performance.

6. How do you calculate profit margin in Excel?

You can calculate profit margin in Excel using a simple formula.

Suppose cell A2 contains the selling price and cell B2 contains the total costs included in your calculation.

Enter this formula in cell C2:

=((A2-B2)/A2)*100

The result is the profit margin percentage expressed as a number, such as 40.

Alternatively, enter =(A2-B2)/A2 and format the cell as a percentage. This displays the result as 40% without multiplying the formula by 100.

Ensure the selling price is greater than zero to avoid a division-by-zero error.

7. Can profit margin be negative?

Yes. A product has a negative profit margin when the costs included in the calculation exceed the revenue generated by its sale.

For example, if a product sells for $40 but its included costs total $50, the profit is −$10.

Profit Margin = (−$10 ÷ $40) × 100 = −25%.

A negative margin indicates that the product is losing money under the cost assumptions used.

8. Should shipping costs be included in product profit margin?

Shipping costs should be included when they are relevant to the type of margin you are calculating.

For gross margin, follow your accounting treatment for costs of goods sold and fulfillment-related expenses. For a more complete product profitability estimate, include seller-paid shipping and other directly attributable selling costs.

Be consistent when comparing products so that the results are meaningful.

9. How often should I calculate product profit margins?

Review margins when setting prices, negotiating with suppliers, changing shipping arrangements, introducing discounts, or experiencing significant cost changes.

For an established business, monthly reviews can help identify trends. High-volume sellers may benefit from more frequent monitoring.

10. Can I use profit margin to set product prices?

Yes. If you know your total relevant cost per unit and your target profit margin, divide the cost by one minus the desired margin.

For example, a $40 unit cost and a 25% target margin produce a selling price of $40 ÷ 0.75, or approximately $53.33.

Before setting the final price, consider demand, competitors, taxes, fees, and expenses that are not included in the unit cost.

Conclusion

Learning how to calculate profit margin on a product helps you understand whether your pricing strategy supports your business goals. The basic formula is simple: subtract the relevant costs from the selling price, divide the resulting profit by the selling price, and multiply by 100.

However, accurate profitability analysis requires more than a single calculation. You should understand the difference between gross, operating, and net profit margins, distinguish margin from markup, and account for relevant costs such as shipping, payment fees, and advertising.

Review your product margins regularly, evaluate discounts before offering them, and compare profit per unit with overall sales volume. These practices can help you identify profitable products, make better pricing decisions, and manage your business more effectively.

If you need a quick calculation, use a profit margin calculator to check your numbers and make the process easier. With consistent tracking and informed pricing decisions, you can build a clearer picture of your product profitability and make more confident business decisions.