Margin Calculator

Calculate your profit margin, gross margin, and net margin instantly. Enter your cost and selling price to understand your profitability and make smarter pricing decisions.

Margin Calculator

Product Details

What you pay for the product.

Amount you sell it for.

Gross Profit Margin

%

You keep $ for every unit sold.

Markup
%
Gross Profit
$
Margin vs Markup: Your Markup is always higher than your Margin. Markup compares profit to cost, while Margin compares profit to the final sales price.

Understanding Profit Margins for Your Business

Profit margin is one of the most important financial metrics for any business. It tells you how much of every dollar in revenue actually becomes profit after expenses are paid. Whether you run a small online shop or manage a large corporation, understanding your margins is critical for pricing strategy, financial planning, and long-term sustainability.

Gross Margin

Gross margin measures the percentage of revenue remaining after subtracting the direct cost of goods sold (COGS). The formula is: Gross Margin = (Revenue - COGS) / Revenue x 100. This metric shows how efficiently a company produces or sources its products. A healthy gross margin means the business has enough revenue left over to cover operating expenses, taxes, and still generate a net profit. Manufacturing companies typically target gross margins of 25-35%, while service-based businesses often achieve 50-70% because they have minimal material costs.

Operating Margin

Operating margin goes a step further by deducting operating expenses such as rent, salaries, utilities, and marketing from the gross profit. The formula is: Operating Margin = Operating Income / Revenue x 100. This metric reveals how well a company manages its day-to-day costs and is a key indicator of operational efficiency. A declining operating margin, even with growing revenue, signals that expenses are growing faster than sales.

Net Margin

Net profit margin is the bottom line. It accounts for all costs including COGS, operating expenses, interest payments, taxes, and any other expenses. The formula is: Net Margin = Net Income / Revenue x 100. This is the percentage of revenue that the business actually keeps as profit. Investors and lenders closely examine net margin because it represents the true profitability of the business after every expense has been paid.

Margin vs. Markup: A Critical Distinction

Many business owners confuse margin and markup, but the distinction is crucial for accurate pricing. Margin is based on the selling price, while markup is based on the cost. If you want a 50% margin, you need a 100% markup. Setting prices using the wrong metric can lead to underpricing and lower profitability than expected. For example, applying a 30% markup to a $100 item gives you a $130 selling price with a 23.1% margin, not the 30% margin you might have intended.

Why Margins Matter for Pricing

Setting the right price is a balancing act. Price too high and you lose customers to competitors. Price too low and you cannot cover your costs. By understanding your target margin, you can work backward from your costs to determine the minimum selling price needed to sustain your business. Regularly reviewing margins across different products or services also helps you identify which offerings are most profitable, allowing you to focus resources on the highest-performing areas of your business.

Average Profit Margins by Industry

Use these benchmarks to compare your business margins against industry averages.

IndustryGross MarginOperating MarginNet Margin
Software / SaaS70 - 85%20 - 40%15 - 30%
Consulting / Services50 - 70%15 - 25%10 - 20%
Manufacturing25 - 35%8 - 15%5 - 10%
Retail (General)25 - 50%5 - 10%2 - 6%
Restaurants / Food60 - 70%5 - 15%3 - 9%
Grocery / Supermarkets25 - 30%2 - 5%1 - 3%
E-commerce40 - 60%5 - 15%5 - 10%
Healthcare / Pharma60 - 80%15 - 30%10 - 20%

Worked Examples

Example 1: Pricing a Product

A candle maker produces artisan candles at a cost of $8.00 each and sells them for $24.00.

  • Revenue per unit: $24.00
  • Cost per unit: $8.00
  • Gross Profit: $24.00 - $8.00 = $16.00
  • Gross Margin: $16.00 / $24.00 x 100 = 66.7%
  • Markup: $16.00 / $8.00 x 100 = 200%
  • This is a strong margin typical of handcrafted goods sold direct-to-consumer.

Example 2: Finding Cost from a Target Margin

A retailer wants to sell a jacket for $120 and needs a 45% gross margin to cover overhead and profit.

  • Target margin: 45%
  • Selling price: $120.00
  • Maximum cost: $120.00 x (1 - 0.45) = $66.00
  • The retailer must source the jacket for $66.00 or less to maintain the 45% margin.
  • If the supplier quotes $72, the margin drops to ($120 - $72) / $120 = 40%.

Example 3: Comparing Product Margins

An electronics store sells two products and wants to compare their profitability.

  • Laptop: Cost $650, Sells for $999. Margin = ($999 - $650) / $999 = 34.9%
  • Phone Case: Cost $3, Sells for $25. Margin = ($25 - $3) / $25 = 88.0%
  • While the laptop generates $349 in gross profit per sale, the phone case has a much higher margin percentage.
  • The store should promote high-margin accessories alongside big-ticket items to maximize overall profitability.

Frequently Asked Questions

Frequently Asked Questions

Was this calculator helpful?

Your rating helps other students discover this tool.

Related Calculators

Explore other calculators to help with your academic planning and success.

College GPA Calculator

College GPA Calculator

Calculate your college GPA

High School GPA Calculator

High School GPA Calculator

Calculate your high school GPA

Cumulative GPA Calculator

Cumulative GPA Calculator

Track your overall GPA