---
title: "How to budget a month of QA test runs"
description: "To budget a month of QA runs, list each kind of run, work out the cost of one from its hourly price and billed seconds, multiply by how often it runs, add retries and keep 20 to 30 percent headroom. The worked example comes to 106.42 USD, budgeted at 135 USD."
url: "https://www.aisandboxpricing.com/entries/budget-a-month-of-qa-runs/"
site: "AISandboxPricing.com"
author: "AISandboxPricing editors"
published: "2026-11-26"
updated: "2026-11-26"
---

# How to budget a month of QA test runs

AISandboxPricing editors. Published 2026-11-26, updated 2026-11-26.

To budget a month of QA runs, list each kind of run, work out the cost of one from its hourly price and billed seconds, multiply by how often it runs, add retries and keep 20 to 30 percent headroom. The worked example comes to 106.42 USD, budgeted at 135 USD.

A monthly QA budget is the sum, over each kind of run, of the cost of one run times how often it runs, plus retries and headroom. The work is mostly counting: how many runs of each kind, how long each keeps its environment open, and at what size.

## Step 1: What kinds of runs do I need to count?

Count every kind of run that starts an environment, because each has its own size, length and frequency. A typical list:

1. **Pull request suites,** run on every push to a branch under review.
2. **Main branch suites,** run after each merge.
3. **Scheduled regressions,** the full suite once a night or once a week.
4. **Agent evals,** if the product includes an agent, at a set frequency.
5. **Manual and exploratory runs** by developers and QA staff.

## Step 2: How do I work out the cost of one run of each kind?

Work out the cost of one run as the environment's hourly price times its billed seconds, divided by 3,600, the seconds in an hour (NIST, read 2026-11-26). Use the environment's whole open time, setup and teardown included. The [cost per test run calculator](https://www.aisandboxpricing.com/entries/cost-per-test-run-calculator/) has the grids; for many runs of the same kind, the [cost per 1,000 runs calculator](https://www.aisandboxpricing.com/entries/cost-per-1000-runs-calculator/) is quicker.

## Step 3: How often does each kind run in a month?

Take the count from last month's CI history if you have it, not from a guess. Pull request suites follow the number of pushes, which follows working days; scheduled runs follow the calendar. If you only have a week of history, multiply by the days each kind of run happens in the month ahead.

## Step 4: What does a worked example look like?

A worked example, with example rates of 0.04 USD per vCPU-hour and 0.01 USD per GiB-hour, so an 8 vCPU, 16 GiB environment costs 0.48 USD an hour:

- Pull request suite: 60 runs a working day, 22 working days, each run 360 seconds of tests plus 60 seconds of setup in one 8 vCPU, 16 GiB environment, 5% of runs repeated.
- Nightly regression: 4 such environments for 30 minutes each, 30 nights.

Table: Worked example of a monthly QA budget, at example rates

| Kind of run | Sum | Monthly cost |
|---|---|---|
| Pull request suite, one run | 420 x 0.48 / 3600 | 0.056 USD |
| Pull request suites, a month | 0.056 x 60 x 22 x 1.05 | 77.62 USD |
| Nightly regression, one night | 4 x 0.5 x 0.48 | 0.96 USD |
| Nightly regressions, a month | 0.96 x 30 | 28.80 USD |
| Estimate | 77.62 + 28.80 | 106.42 USD |
| Budget with 25% headroom | 106.42 x 1.25, rounded up | 135 USD |

Change any input and the rest follows. Doubling the pushes doubles the largest line, which is why the pull request suite is the first place to look for savings here.

## Step 5: How much headroom should I add?

Add enough headroom to cover the gap between your estimate and real usage. Without history, 20 to 30 percent is a reasonable start: it covers more pushes than planned, reruns after a broken dependency and a new test file or two. After two or three months, set it from the real gap between estimate and bill.

## Step 6: How do I keep to the budget?

Keep to the budget by watching it weekly and setting limits before it is spent.

1. **Alerts** at 50, 80 and 100 percent of the month's budget.
2. **A hard limit** if your provider offers one, set above the budget so it only stops runaway spending.
3. **A per-run cap** on environment lifetime, so one stuck run cannot use a day of compute.
4. **A weekly check** of cost by kind of run, so a change in one kind shows up early.

Most overruns come from a few causes: environments that were never closed, retries left on for a suite that started failing, and a new scheduled job nobody added to the budget. [What idle time costs](https://www.aisandboxpricing.com/entries/idle-time-cost-of-agent-environments/) covers the first.

## What we read for this article

- [NIST, Units outside the SI](https://physics.nist.gov/cuu/Units/outside.html), read 2026-11-26

## FAQ

### How do I estimate a monthly testing budget?

Multiply the cost of one run of each kind by how many times it runs in a month, add the share of runs that are retried, then add headroom for growth and for runs you did not plan.

### How much headroom should a QA compute budget have?

Enough to cover the gap between your estimate and last month's real usage. Without history, 20 to 30 percent is a common starting point; tighten it once you have two or three months of actual bills.

### Should I count working days or calendar days?

Count the days each kind of run actually happens. Pull request suites follow working days; scheduled nightly runs usually run every day of the month.

### How do I stop a test budget from being exceeded?

Set alerts at a share of the budget, such as 50, 80 and 100 percent, and a hard spending limit if your provider offers one. Review the largest kind of run first when an alert fires.
