> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beaconrevenue.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Gross margin

> Measures the share of revenue left after hosting and software, onboarding, support and customer success.

## What it is

Measured. The share of your revenue left after the cost of revenue: hosting and software, onboarding, support and customer success. Beacon calculates it over Cost to serve's 12-month window for the company, each size group, segment, plan and customer-fit tier, and each customer.

It is the banner figure on the [Margin intelligence](https://docs.beaconrevenue.io/modules/margin-intelligence.md) page. [GTM efficiency](https://docs.beaconrevenue.io/modules/gtm-efficiency.md) reads the company figure.

## How it's calculated

```text theme={null}
Cost of revenue  = Hosting and software + Onboarding + Support + Customer success
Gross margin     = Revenue − Cost of revenue
Gross margin (%) = Gross margin ÷ Revenue × 100
```

| Rule | Detail |
| - | - |
| **Window** | The latest 12 months Cost to serve has calculated, or every month it holds until 12 exist. Every row uses the same window. |
| **Revenue** | Each customer's revenue over the window, from Cost to serve. A group's is the sum of its customers'. |
| **Hosting and software** | Revenue times the share you enter in Setup, payment fees included, until your books are read. The figure is then labelled **entered**. |
| **No estimate** | Hosting and software are empty, not 0, and gross margin isn't calculated |
| **Onboarding** · **Support** · **Customer success** | Copied from Cost to serve, as it placed them on each customer |
| **Company figure** | Also includes the onboarding, support and customer success Cost to serve couldn't place on a customer |
| **Groups and customers** | Carry only the costs placed on their customers |
| **No revenue** | Empty when revenue is 0 |

Beacon adds up each customer's revenue and costs, and each group's, in the daily run. The percentage is calculated from those sums.

## Where it comes from

| Source | What it supplies | Required |
| - | - | - |
| **Billing** (Stripe) | Revenue over the window, through Cost to serve | Yes. No module runs without billing. |
| **Support desk** (HubSpot tickets) · **CRM** (HubSpot) | Support and customer-success cost on each customer, through Cost to serve | Yes, for Cost to serve |
| **Your estimate** | Hosting and software as a share of revenue, entered in Margin intelligence's Setup | Yes, until your books are read |

## Where it is available

| Place | Available |
| - | - |
| **Data > Dashboards > Margin intelligence** | Yes. The banner **Gross margin**, labelled entered while hosting and software come from your estimate, against your growth plan's floor. The **Overview** chart **Gross and contribution margin by group**, and the **Margin per customer** tab. Leadership roles only. |
| **Data > Dashboards > GTM efficiency** | Yes. The company figure, in the **Rule of 40** tile on the **Overview**. Leadership roles only. |
| **MCP** | Yes, through read-module on Margin intelligence (the overview and customers views) and on GTM efficiency (the overview view) |
| **Data API** | Not yet available |

## How fresh it is

Calculated once a day at 16:00 UTC by default, after Cost to serve (14:00 UTC). Cost to serve calculates each month once, after it ends, so the window moves when a new month is calculated. A new estimate in Setup is used from the next run.

The module doesn't run if billing isn't connected.

## Currency and rounding

A percentage, rounded to 0.1%. Revenue and every cost are in your reporting currency, to the cent.

## What it is not

* **Not [contribution margin](https://docs.beaconrevenue.io/definitions/contribution-margin.md).** That also takes off sales and marketing and retention, and isn't available.
* **Not operating margin.** Company overheads such as R\&D, finance and office costs aren't included.
* **Not [cost to serve](https://docs.beaconrevenue.io/definitions/cost-to-serve.md).** That is the serving cost as a share of revenue, without hosting and software.
* **Not from your books while labelled entered.** Hosting and software are your own estimate until your accounting is read.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.