Calculators

Gross Margin Calculator

Calculate gross profit and gross margin percentage from a product's selling price and direct cost per unit.

Loading calculator...

What this Gross Margin Calculator does

This Gross Margin Calculator estimates the share of a product’s selling price that remains after subtracting its direct cost. Enter the selling price per unit and the direct cost per unit in Canadian dollars. The result is a percentage, which makes it easier to compare products with different price points. The calculation uses this formula: (selling price − direct cost) ÷ selling price × 100.

For example, if a small shop sells a locally made item for $25 and pays $10 per unit to acquire or make it, the gross profit is $15. Dividing $15 by the $25 selling price gives a gross margin of 60%. The result describes the portion of each sales dollar left after the entered direct cost. It does not mean that the full amount is available as business income.

The calculator is deliberately limited to two unit amounts. It assumes both are in CAD and refer to the same product unit and sales basis. It does not estimate tax, overhead, or a recommended price. Treat it as a transparent arithmetic check based on the numbers you provide.

How to use the Gross Margin Calculator

Enter the amount customers pay for one unit, followed by the direct cost associated with that same unit. Keep the figures on a consistent basis. If the selling price is for one item, the direct cost should also be for one item. If you are checking a case or bundle, use the selling price and cost for the whole case or bundle.

  • Selling price per unit is the amount charged for the unit, before any adjustments you have not included in the entered figure.
  • Direct cost per unit is a cost you assign directly to making or acquiring that unit, such as the product purchase cost or materials used.
  • Gross margin is the resulting amount left after that direct cost, expressed as a percentage of selling price.

Check that the direct cost is lower than the selling price if you expect a positive margin. If both amounts are equal, the formula returns zero percent. If direct cost exceeds selling price, the result is negative, indicating that the entered direct cost is greater than the selling price. The selling price must be greater than zero because it is the denominator in the formula.

Use the same approach for each item you compare. A percentage can help make unlike price points easier to review, but the result depends on what you include in direct cost. Keep a note of your cost definition so comparisons remain meaningful over time.

How the Gross Margin Calculator formula works

The calculator first subtracts direct cost from selling price to find gross profit per unit. It then divides that gross profit by selling price and multiplies by 100 to express the relationship as a percentage.

Gross margin percentage = (selling price − direct cost) ÷ selling price × 100

Using the example of a $25 selling price and a $10 direct cost, the calculation is ($25 − $10) ÷ $25 × 100. That equals $15 ÷ $25 × 100, or 60%. The dollar difference is gross profit per unit, while the percentage is gross margin. Both figures describe the same inputs in different ways.

Margin uses selling price as its base. A markup calculation instead compares the difference with cost. These measures can produce different percentages from the same prices, so identify the measure before interpreting or communicating a figure. This calculator reports gross margin only.

The output is rounded to two decimal places for display. Rounding affects the displayed precision, while the underlying formula remains the same. Small differences may appear if you compare a rounded calculator result with figures calculated from rounded records or aggregated sales.

Use cases for the Gross Margin Calculator

A retailer can use the calculation to review the direct cost and selling price of an individual product. For example, a shop carrying locally produced gifts might compare items with different prices. The percentage offers a consistent view of how much of each item's selling price remains after the direct cost entered in the tool.

A maker or small business owner can also check a proposed price against a known per-unit cost. This does not establish what price customers will accept or whether a business will be profitable. It simply shows the arithmetic relationship between the two values entered. Other expenses and market conditions require separate consideration.

For a useful comparison, apply a consistent method:

  • Choose whether your unit is one item, a set, or a package.
  • Use the same CAD basis for selling price and direct cost.
  • Decide which directly attributable costs belong in the cost figure.
  • Compare like periods and product versions when reviewing historical figures.

These steps can help a business notice when a cost assumption or price has changed. They do not replace bookkeeping records. For totals across a period, calculate from reliable sales and cost data on a consistent basis rather than treating one unit’s result as the whole business result.

Other factors to consider when calculating gross margin

The result is only as useful as the inputs and their definitions. A direct cost could include the purchase cost of resale inventory or the materials used for a product. Depending on how a business tracks costs, other directly related items may also matter. The calculator does not decide which accounting treatment applies to your business.

Gross margin does not subtract many expenses that can affect whether a business earns a profit. These may include rent, utilities, wages not included in direct product costs, payment processing, shipping, marketing, equipment, and administrative expenses. The list and classification will vary by business. A positive gross margin therefore does not by itself show that a product or business is profitable overall.

Be consistent about taxes and discounts. If the selling price you enter includes amounts collected for tax or reflects a temporary discount, make sure you understand how that basis affects the comparison and use a consistent approach for the costs and sales you are reviewing. This tool does not calculate taxes or adjust for promotions, returns, or bulk pricing.

For planning, keep the calculation alongside the source figures and the date they apply. Revisit it when supplier costs, product specifications, or prices change. For accounting or tax treatment questions, use records and guidance appropriate to your business and jurisdiction.

Worked example using the default inputs

This example uses the values initially shown in the calculator.

  • Selling price per unit (CAD) is 25.
  • Direct cost per unit (CAD) is 10.

Applying the displayed formula gives approximately 60% before display rounding. The result uses the units and assumptions described above.

Frequently asked questions

What is a gross margin percentage?

It is gross profit expressed as a share of selling price. In this calculator, gross profit per unit is selling price minus the entered direct cost, and the percentage is that difference divided by selling price, multiplied by 100.

Is gross margin the same as markup?

No. Gross margin compares the difference between selling price and cost with selling price. Markup compares that difference with cost. Since the reference amount differs, the percentages differ as well.

Can the result be negative?

Yes. If the direct cost entered is greater than the selling price, the subtraction produces a negative amount and the margin is negative. That signals the entered cost exceeds the entered selling price for the unit.

Does this calculate net profit?

No. It accounts only for the direct cost you enter. It does not subtract general operating expenses or determine taxes, cash flow, or overall profitability.

What should I include as direct cost?

Use a cost definition that fits your records and apply it consistently. A product acquisition cost or materials used may be relevant examples. The calculator cannot decide the appropriate accounting classification for your business.

Written by

pstinbc.ca Editorial Team

Editorial team

Independent editorial coverage of bc shopping & small-business literacy.