Skip to main content
Protect the margin

Gross margin calculator

Find gross margin percent from selling price and unit cost on any line.

Calculator

Gross margin calculator

Live result

Enter values to see results update live.

Why this matters

  • The core margin check

    Margin on selling price is what you have left for labor, rent, and profit.

  • Invoice cost, not list price

    Use the unit cost from your bill — that is what actually moved.

  • Foundation for protection

    Every tool in this stage builds on knowing your margin percent.

Quick answers

What is gross margin?

Selling price minus unit cost, divided by selling price. It shows how much of each sale covers overhead and profit.

Margin vs markup?

Margin is on selling price. Markup is on cost. The next calculator converts between them.

What is a healthy gross margin?

It varies by business. Use your target margin in the thin-margin and break-even tools to set your own floor.

Sources & citations

Formulas follow standard cost-accounting definitions. CostBeacon defaults are documented in product help and technical guides.

Formula reference

(selling price − unit cost) ÷ selling price

CostBeacon

Turn invoices into cost history

Upload supplier PDFs and get line-item unit costs, price alerts, and margin insights — without spreadsheets.