Margin Calculator

Calculate gross profit margin, markup percentage, and gross profit in dollars from product cost and selling price.

Calculator Inputs

$
Production or acquisition cost.
$
Retail selling price.

Calculated Results

Gross Profit Margin
40.00%
Gross Profit ($) $40.00
Markup Percentage (%) 66.67%
Cost of Goods Sold (COGS) $60.00 (60% of Revenue)
Values calculate live as you adjust inputs.

About Margin Calculator

What Your Gross Profit Margin Tells You About a Sale

A product can sell well and still leave less money than expected. Gross profit margin helps you see how much of the selling price remains after subtracting the product’s cost. It gives you a clearer picture of whether your current price leaves enough room to cover the other expenses involved in running your business.

Imagine you sell handmade products, buy stock from a wholesaler, or manage an online store. A product that costs more to source than expected can shrink your margin even if customers continue paying the same price. Checking the margin alongside the dollar amount of gross profit helps you spot that change before it becomes a bigger pricing problem.

Remember that gross profit margin is not the same as the money left after every business expense. Rent, advertising, payment processing, staff costs, and other expenses may still need to be paid.

How to Set a Selling Price for Your Target Margin

Knowing your product cost is only half of a pricing decision. You also need to consider how much of each sale you want to retain as gross profit. A common mistake is to add a percentage to cost and assume the result is the same percentage of profit on the final selling price. That confuses markup with margin.

For example, suppose a product costs $32 and you want a gross margin of 40%. The selling price would need to be about $53.33, leaving $21.33 in gross profit before other expenses. A 40% markup on the same $32 cost would produce a selling price of $44.80, which gives you a lower gross margin.

This calculator compares the cost and selling price you enter. If you are working toward a target margin, use that target to determine a suitable price first, then enter the proposed price to check the resulting margin and markup.

Which Costs Should You Include When Checking Your Margin?

Start with the cost of goods sold (COGS): the direct cost of purchasing or producing the items you sell. Depending on your business, this may include wholesale purchase costs, raw materials, direct production labor, and costs such as inbound freight that are attributable to acquiring the goods.

Other expenses can affect what your business ultimately earns. Outbound shipping, marketplace commissions, payment processing fees, advertising, rent, and administrative costs may need to be considered separately, depending on how your accounts classify them. Don’t assume they are all included in this calculator’s product-cost figure.

For a useful comparison, apply a consistent cost basis across products. If one item’s cost includes packaging and another item’s doesn’t, their calculated margins may not be directly comparable.

Understanding Your Margin Calculator Results

The results show four related figures, each useful for a different pricing question:

  • Gross Profit Margin: The percentage of the selling price left after subtracting the entered product cost.

  • Gross Profit ($): The difference between the selling price and the product cost, expressed as a dollar amount.

  • Markup Percentage: The profit measured against cost rather than selling price. This helps explain how much the selling price exceeds the cost.

  • Cost of Goods Sold (COGS): The product cost entered, also shown as a share of the selling price.

Look at these figures together when reviewing a price. A product may have a strong margin percentage but generate only a small dollar profit per sale; another may have a lower margin but contribute more gross profit in dollars. Which matters more depends on your sales volume, costs, and business model.

What is Margin Calculator?

A profit margin calculator computes the percentage of revenue remaining after subtracting Cost of Goods Sold (COGS), distinguishing profit margin from markup percentage.

How to Use This Calculator

  1. Enter product unit cost (COGS).
  2. Enter target retail selling price.
  3. Analyze gross profit margin percentage and corresponding markup percentage.

The Mathematical Formula & Variables

Profit = Revenue - Cost; Margin% = (Profit / Revenue) * 100; Markup% = (Profit / Cost) * 100

Variables Definition

Symbol / Variable Name Description
Margin Profit as % of Revenue Portion of sales dollar that is pure profit.
Markup Profit as % of Cost Percentage added to cost to reach selling price.

Step-by-Step Worked Example

Scenario: Product costs $60.00 and sells for $100.00.

  1. Gross profit = $100.00 - $60.00 = $40.00.
  2. Margin = ($40.00 / $100.00) * 100 = 40.0%.
  3. Markup = ($40.00 / $60.00) * 100 = 66.67%.

Result: Margin: 40% | Markup: 66.7%

Frequently Asked Questions

Why is margin always lower than markup for the same transaction?

Margin divides profit by the selling price (a larger denominator), whereas markup divides profit by cost (a smaller denominator). A 50% margin requires a 100% markup.

Can a product have a positive gross margin but still lose money overall?

Yes. A positive gross margin means the selling price exceeds the product cost entered, but the remaining gross profit may not be enough to cover operating expenses, fees, and other business costs. Net profitability depends on the wider financial picture.

Should shipping and marketplace fees be included in gross margin?

It depends on the type of cost and your accounting method. Costs involved in acquiring or producing inventory may form part of COGS, while delivery to customers and marketplace or payment fees may be classified separately. For this calculator, enter the product cost that matches the margin you want to evaluate, and account for additional expenses separately where needed.

What happens to margin when the selling price falls but the cost stays the same?

Gross profit in dollars decreases, and gross profit margin usually falls as well. Even a modest discount can have a noticeable effect when the original margin is narrow, so check the revised selling price before running a promotion.

Is gross profit margin the same as net profit margin?

No. Gross profit margin subtracts the cost of goods sold from sales revenue. Net profit margin accounts for a broader range of expenses, including operating costs and other applicable expenses. This calculator estimates gross margin from product cost and selling price; it does not calculate net profit margin.