# Pipeline coverage, win rate and sales velocity: formulas and a worked HubSpot example

> How to calculate pipeline coverage, win rate, sales cycle and sales velocity on 24 real-looking HubSpot deals, with the Excel and Google Sheets formulas, three mistakes that flatter a pipeline, and asking an AI agent the same questions.

Source: https://datatomcp.com/guides/sales-pipeline-metrics · By Killian · Updated 2026-11-16

**Pipeline coverage** is the open pipeline closing in the period divided by the period's quota. **Win rate** is won deals ÷ closed deals (won + lost). **Sales velocity** is open opportunities × average won deal × win rate ÷ sales cycle in days. Compute them with `COUNTIFS` on a CRM export, in your CRM's reports, or with an agent connected to HubSpot through datatomcp.

Below is a worked example on 24 HubSpot deals, every number counted by a query engine, with the Excel and Google Sheets formulas, three mistakes that make a pipeline look healthier than it is, and how to ask Claude, ChatGPT or Cursor the same questions every month.

## The example data

A small B2B software company sells to mid-sized firms. It's 1 October 2026: the third quarter (1 July to 30 September) has closed, and the fourth-quarter quota is **75,000**. The deals come from HubSpot, one row per deal, with the columns HubSpot's API gives: `dealname`, `amount`, `dealstage`, `createdate`, `closedate`, `hs_is_closed` and `hs_is_closed_won` (true or false), plus the pipeline and the associated company.

| Deal | Amount | Stage | Created | Close date |
|---|---:|---|---|---|
| Northwind fleet dashboards | 18,000 | Closed won | 2026-04-14 | 2026-07-09 |
| Kestrel team plan | 6,000 | Closed won | 2026-06-02 | 2026-07-21 |
| Harbor Foods rollout | 12,000 | Closed won | 2026-05-11 | 2026-08-14 |
| Alder Finance pilot | 4,800 | Closed won | 2026-07-01 | 2026-08-28 |
| Brightpath clinics | 24,000 | Closed won | 2026-03-23 | 2026-09-17 |
| Quill Legal starter | 3,600 | Closed won | 2026-08-10 | 2026-09-29 |
| Mosaic stores | 30,000 | Closed lost | 2026-04-02 | 2026-07-15 |
| Tidewater ops analytics | 45,000 | Closed lost | 2026-03-10 | 2026-07-30 |
| Kestrel add-on | 2,400 | Closed lost | 2026-07-06 | 2026-08-04 |
| Northwind EU expansion | 9,000 | Closed lost | 2026-06-15 | 2026-08-19 |
| Harbor Foods second site | 7,200 | Closed lost | 2026-07-20 | 2026-09-08 |
| Alder enterprise | 15,000 | Closed lost | 2026-05-04 | 2026-09-10 |
| Quill firm-wide | 8,400 | Closed lost | 2026-06-22 | 2026-09-24 |
| Mosaic pilot | 5,000 | Closed lost | 2026-08-03 | 2026-09-30 |
| Brightpath research unit | 10,800 | Closed lost | 2026-07-14 | 2026-09-22 |
| Quill renewal | 5,000 | Negotiation | 2026-05-18 | 2026-09-15 |
| Tidewater renewal scope | 36,000 | Negotiation | 2026-06-01 | 2026-10-30 |
| Mosaic analytics | 22,000 | Proposal | 2026-08-12 | 2026-11-20 |
| Brightpath labs | 19,000 | Proposal | 2026-07-28 | 2026-12-10 |
| Northwind APAC | 14,000 | Demo | 2026-09-02 | 2026-12-15 |
| Kestrel enterprise | 12,000 | Discovery | 2026-09-14 | 2026-12-18 |
| Alder team | 8,000 | Demo | 2026-09-21 | 2027-01-29 |
| Harbor forecasting | 16,000 | Discovery | 2026-09-25 | 2027-02-15 |
| Northwind training | 7,000 | Discovery | 2026-09-28 | (none) |

Made-up data, small enough to check by hand. Three open deals are there on purpose: one whose close date has already passed (Quill renewal), two closing next quarter, and one nobody gave a close date.

## The four questions, answered

**1. What was the win rate last quarter?**

15 deals closed in Q3: **6 won** (68,400) and **9 lost** (132,800).

- Win rate by count: 6 ÷ 15 = **40.0%**
- Win rate by value: 68,400 ÷ 201,200 = **34.0%**

The two differ because the lost deals were bigger (14,756 on average against 11,400 for the wins). Big deals were lost more often than small ones, which matters for the next question.

**2. Is there enough pipeline for next quarter?**

The open deals with a close date in Q4 (1 October to 31 December): 5 deals, **103,000**.

- Pipeline coverage: 103,000 ÷ 75,000 = **1.37×**

Whether 1.37× is enough depends on your own win rate, not on a rule of thumb. At last quarter's 34.0% by value, this pipeline is worth about 103,000 × 0.34 = **35,000** of closed revenue, less than half the quota. To expect the full 75,000 at that win rate, coverage has to reach 1 ÷ 0.34 = **2.94×**, about 220,600 of pipeline closing in the quarter.

**3. How long does a deal take to close?**

The sales cycle of each won deal is its close date minus its create date: 86, 49, 95, 58, 178 and 50 days.

- Average sales cycle: 516 ÷ 6 = **86.0 days**
- Median: **72 days**

One deal (Brightpath clinics, 178 days) pulls the average up by 18 days; without it the average is 67.6. Report the median next to the average, or the cycle by deal size, before you plan around it.

**4. What is the sales velocity?**

Sales velocity = open opportunities × average won deal × win rate ÷ sales cycle:

- 9 open deals × 11,400 × 40.0% ÷ 86.0 days = **477 per day**
- Over a 92-day quarter: about **43,900**

That is a forecast of what the open pipeline produces at last quarter's pace, not a promise; it's useful as a trend. Q3 actually closed 68,400, so either the next quarter is slower or the pipeline needs more deals. Each of the four inputs is a lever: more opportunities, bigger deals, a better win rate, a shorter cycle.

## The formulas in Excel or Google Sheets

With a HubSpot (or Salesforce, Pipedrive) deal export on a sheet called `Deals`, stage in column C, amount in B, create date in D and close date in E:

- **Win rate (count)**: `=COUNTIFS(C:C, "Closed won", E:E, ">="&DATE(2026,7,1), E:E, "<"&DATE(2026,10,1)) / COUNTIFS(C:C, "Closed*", E:E, ">="&DATE(2026,7,1), E:E, "<"&DATE(2026,10,1))`. `"Closed*"` matches both Closed won and Closed lost.
- **Win rate (value)**: the same with `SUMIFS(B:B, …)` on top and bottom.
- **Pipeline closing in Q4**: `=SUMIFS(B:B, C:C, "<>Closed*", E:E, ">="&DATE(2026,10,1), E:E, "<"&DATE(2027,1,1))`, then divide by the quota.
- **Sales cycle**: a helper column `=E2-D2` (days), then `=AVERAGEIFS(F:F, C:C, "Closed won", E:E, ">="&DATE(2026,7,1), E:E, "<"&DATE(2026,10,1))`. `MEDIAN(FILTER(…))` gives the median.
- **Average won deal**: `=AVERAGEIFS(B:B, C:C, "Closed won", E:E, ">="&DATE(2026,7,1), E:E, "<"&DATE(2026,10,1))`.

Use "before the first day of the next period" (`"<"&DATE(2026,10,1)`) rather than "on or before the last day": exported close dates often carry a time, and `"<="&DATE(2026,9,30)` drops a deal closed on 30 September at 4 pm.

## Three mistakes that make a pipeline look healthier (or worse) than it is

**1. Open deals in the win-rate denominator.** Won ÷ all deals in the export gives 6 ÷ 24 = **25%**, not 40%. Open deals haven't been won or lost yet; counting them makes the win rate fall every time the team adds pipeline. Count only deals that closed in the period.

**2. Coverage from the whole open pipeline.** All 9 open deals add up to 139,000, which reads as **1.85×** coverage. But 5,000 of that has a close date that already passed (a deal nobody updated), 24,000 closes next year and 7,000 has no close date. Only 103,000 is due this quarter: **1.37×**. Filter on the close date, and clean up the stale deals before the forecast meeting.

**3. Average deal size over every closed deal.** Averaging won and lost deals gives 201,200 ÷ 15 = **13,413** instead of 11,400. Put that into the velocity formula and it says **562 per day** instead of 477, 18% too high. The lost deals were the bigger ones; their size is not what you collect.

## Ask an agent instead of rebuilding the sheet

Every forecast meeting brings new questions ("win rate on deals over 20,000?", "which open deals have a close date in the past?", "cycle length by stage reached?"), and each means another filter or pivot on a fresh export. Pasting the export into a chat works for 24 deals; with a few thousand deals and their history, the paste costs tokens on every question and eventually doesn't fit the context window (the [token cost calculator](/guides/spreadsheet-ai-token-cost-calculator) shows how fast). datatomcp lets the agent query the deals instead: it sends a filter and a total, and gets back counted numbers.

**1. Connect HubSpot.** Sign in at [app.datatomcp.com](https://app.datatomcp.com/login), open **Add data → Connect a source → HubSpot**, and paste a private app token: HubSpot → Settings → Integrations → Private apps → Create, with the read scopes `crm.objects.contacts.read`, `crm.objects.companies.read` and `crm.objects.deals.read`. datatomcp only reads.

**2. Import the deals.** Pick **Deals** under "What to import". Stages and pipelines come in by name (Closed won, Proposal), not as HubSpot's internal ids, and the dataset refreshes from HubSpot every hour. A CSV export from any CRM works the same through **Upload a file**.

<img src="/img/guides/hubspot-connection.webp" width="790" height="265" loading="lazy" alt="datatomcp Add data page, Your connections: a HubSpot connection with a 'What to import' list (Contacts, Companies, Deals), an optional dataset name and an Import as a dataset button" style="max-width:100%;height:auto">

**3. Connect your agent** ([any MCP client](/guides/add-remote-mcp-server), or [Claude Code](/guides/claude-code-mcp) step by step) and ask in plain words.

We ran this example through datatomcp's HubSpot import and query engine (HubSpot's API answered by a local copy with the 24 deals above); every total on this page is its output. "Win rate last quarter" is one `aggregate` call: closed deals with a close date in Q3, grouped by `hs_is_closed_won`, counting and summing `amount` (6 for 68,400 and 9 for 132,800). Q4 coverage is one call on open deals with a Q4 close date (5 for 103,000). For the cycle, the agent asks for the six won deals' dates and subtracts them; the averages, the median and the velocity are arithmetic on those results.

What the results say on their own:

- **Stage names, not ids.** The agent filters on `dealstage = "Closed won"` or on `hs_is_closed_won`, both in the data as HubSpot shows them.
- **Stale deals are one question away.** "Open deals with a close date before 1 October" returns the Quill renewal; "open deals with no close date" returns Northwind training.
- **Every agent gets the same count.** Claude, ChatGPT and Cursor send the same query to the same deals, so the win rate in the forecast deck and the one in the sales channel don't drift apart.

## FAQ

**What is pipeline coverage?** The open pipeline due to close in a period divided by the quota (or target) for that period. 103,000 of deals closing in Q4 against a 75,000 quota is 1.37× coverage. Count only open deals with a close date inside the period.

**What is a good pipeline coverage ratio?** The one your own win rate needs: 1 ÷ win rate by value. At a 34% win rate you need about 2.9× to expect to hit quota; at 50%, 2×. A fixed rule of thumb ignores how often your team actually wins.

**How do you calculate win rate?** Deals won ÷ deals closed (won + lost) in the period. Leave open deals out. Report it by count and by value: here 40.0% of deals but 34.0% of the money, because the lost deals were bigger.

**What is the sales velocity formula?** Number of open opportunities × average won deal size × win rate ÷ average sales cycle length in days. It gives revenue per day: 9 × 11,400 × 40% ÷ 86 = 477 a day in the example.

**How do you calculate sales cycle length?** For each won deal, close date minus create date, then the average (and the median) over the deals won in the period. Here 86 days on average and 72 at the median; one 178-day deal makes the difference.

**Can ChatGPT or Claude calculate pipeline metrics from HubSpot?** Yes. With a small export uploaded, the chat runs code and can compute them. For the same questions every week on the live pipeline, connect HubSpot so the agent queries the deals and gets counted totals back: the setup is above, and HubSpot's own reports cover some of these too, depending on your plan.

[Create a free account](https://app.datatomcp.com/login) and connect your HubSpot deals, or [try the demo](https://app.datatomcp.com/demo) first. Free covers 3 datasets of up to 100,000 rows each.

More: [Stripe MCP for MRR: ask Claude, ChatGPT or Cursor your exact MRR](/guides/stripe-mrr-in-claude) · [Sales analysis: a worked example by month, product, region and customer](/guides/sales-data-analysis) · [Budget vs actual: variance formula and the double-counting trap](/guides/budget-vs-actual)

---

## About datatomcp

datatomcp is the AI-native data layer for teams without a data team. It makes a team's Google Sheets, CSV and Excel files, databases (PostgreSQL, MySQL) and apps (Stripe, HubSpot, Airtable) AI-ready: one governed place every AI agent can ask, with exact answers computed by a database, shared definitions of what each number means, a full audit trail of agent questions, charts and dashboards. Agents connect over a remote MCP server (OAuth) or a REST API. Hosted in the EU. Facts, plans and limits: https://datatomcp.com/llms.txt. API reference: https://datatomcp.com/docs/api.
