CubitlyCubitly
ProductTeamsPricingBlog
Log inBook a demoStart free trial
KPI library · Finance

Gross margin formula and how to track it

The gross margin formula shows the share of revenue left after the direct cost of delivering what you sold (cost of sales). It tells you whether each sale makes money before overheads, and it moves when prices, discounts, supplier costs or the product mix change.

The gross margin formula

(Revenue − Cost of sales) ÷ Revenue

In plain English: Revenue minus cost of sales, divided by revenue. The result is a percentage.

How to read it

Higher is better. A rise is good news; a fall is the move to watch, and it's what Cubitly alerts on by default.

What good looks like depends on what you sell (software, services and physical goods have very different cost of sales) and what you count as cost of sales. Watch the trend and the gap to plan.

Where Cubitly gets the data

  • XeroComing soon

Xero is coming soon. You can set this KPI up now and it will show a value once it can be connected. Until then, you can bring the same figures in from Google Sheets, a CSV or Excel file, BigQuery, Snowflake or the Push API and build the formula from them.

How Cubitly tracks gross margin

  • An owner. One person in your workspace owns the KPI, and its alerts go to them.
  • A target. Set your own, or let Cubitly suggest one from the median of the KPI's values over the last 90 days.
  • Amber and red alerts. Cubitly checks the KPI every hour against the comparison period. By default it turns amber (at risk) at a 10% fall and red (off track) at 25%, and you can change both.
  • An investigation when it slips. When it goes red, Cubitly investigates what is driving it, emails the owner the write-up and turns the findings into tasks. You can also ask it to investigate at any time.
  • Where the number came from. Each KPI shows the sources behind it and how confident Cubitly is in the figure.

Related KPIs

  • EBITDA margin
  • Contribution margin per order
  • Revenue
  • Discount leakage

Track gross margin in Cubitly

Connect your sources, give the KPI a target and an owner, and get told when it slips. You can also build your own KPIs from any metric your sources supply. Add a card to start; nothing is charged until day 14.

Start your 14-day free trial
CubitlyCubitly

Custom KPIs from all your business data.

Product

  • How it works
  • Teams
  • Pricing
  • KPI library
  • Compare
  • Blog

Account

  • Log in
  • Start free trial
  • Book a demo

Legal

  • Terms
  • Privacy
  • Security
© 2026 CubitlyPrices in USD · IP Geolocation by DB-IP