Self-hosted Linux runners win above 4,833 build minutes
Ravi Menon, Developer tooling editor (AI-assisted) · · updated
The break-even is (VM cost + included compute) / per-minute rate. For Linux 2-core x64 on GitHub Free, that is (17 + 12) / 0.006 = 4,833.3 minutes a month, or 80.6 hours of builds [1]. Below that, GitHub-hosted is cheaper, and at 3,000 minutes the hosted bill is $6 against $17 for the VM, a gap of $11 in hosted's favour [1].
Why your plan moves the line
Hosted usage draws from a dollar amount of included compute, not a fixed number of minutes, and self-hosted runners are free and do not reduce that amount [2]. The included amount is $12 on GitHub Free and $18 on GitHub Pro and Team [1]. A bigger allowance means more minutes are already paid for, so the VM has to beat a smaller bill.
The break-even uses the Linux 2-core x64 rate of $0.006 a minute and an always-on VM at $17 a month [1]. The formula is (V + I) / r, where V is the VM's monthly cost, I the included compute and r the per-minute rate [1].
| Plan | Included compute | Break-even minutes a month | Build hours |
|---|---|---|---|
| GitHub Free | $12 | 4,833.3 | 80.6 |
| GitHub Team | $18 | 5,833.3 | 97.2 |
The $17 is an assumed VM price, not a quote [1]. For Free the arithmetic is (17 + 12) / 0.006 = 4,833.3 minutes, and for Team (17 + 18) / 0.006 = 5,833.3 minutes [1]. At 3,000 minutes the hosted bill is $0 on Team, because 3,000 × $0.006 is $18, exactly the included amount [1]. A team that stays under the included amount never recovers the cost of a VM.
Where the arithmetic stops
The break-even counts only the VM's price. Setup, patching, storage and traffic are left out [1]. The same goes for the limits a self-hosted runner brings: the formula assumes one VM takes every build, and it does not price queueing when jobs overlap. None of these costs is quantified, so the break-even is a floor. Your real break-even sits higher by whatever your time and extra VMs cost.
Hetzner prices are in euros excluding VAT, so convert at your own rate and add VAT before using your VM price [1]. The only VM with a listed price is the CPX22 (2 vCPU, 4 GB, Helsinki) at EUR 16.99 a month excluding VAT, which Hetzner states as a cap on the bill [1]. That figure is not the $17 used in the examples. Convert it and add VAT at your own rate, then put the result in the formula. Every euro the converted price lands above $17 moves the Linux break-even up by 1 / 0.006 = 167 minutes [1].
The cheaper CX23 (2 vCPU, 4 GB) at EUR 5.99 a month was marked unavailable on 2026-11-21, as was every Cost-Optimized plan [1]. Plan on the CPX22 price unless that changes.
The rates apply to private repositories. Copilot code review on runners set up through Actions Runner Controller is billed at different rates [1]. macOS at $0.062 a minute needs Mac hardware to self-host, so the VM formula does not apply [1]. A VM with a different core count is not comparable with the 2-core rate [1].
Questions readers ask
Does the break-even change if my VM costs less than $17?
Yes. Replace V in the formula: the break-even is (V + I) / r, so each dollar off the VM price removes 1 / 0.006 minutes from the Linux threshold [1].
Do self-hosted minutes use up my included compute?
No. GitHub lists self-hosted runners as free and says their usage does not reduce the included compute [2].
Is a per-job VM cheaper than an always-on one?
Only if its hourly price is under $0.36 for Linux or $0.60 for Windows, before boot and idle time are counted [1].
How the numbers work
Computed from the numbered sources and the assumptions named below; change an assumption and the results change with it.
| Figure | Value | Where it comes from |
|---|---|---|
| Your build minutes a month | 3,000 minutes | assumption: the reader's own build minutes a month; typical value from source [1] |
| GitHub-hosted rate for Linux 2-core (x64) | 0.006 $ per minute | source [1] |
| Included compute on GitHub Free (private repositories) | 12 $ per month | source [1] |
| Included compute on GitHub Team | 18 $ per month | source [1] |
| Your self-hosted VM cost a month | 17 $ per month | assumption: the reader's own VM price; typical value from source [1], an always-on VM near Hetzner CPX22 EUR 16.99 a month excluding VAT |
| Minutes in an hour | 60 minutes | given: 60 minutes make one hour |
| Your hosted bill at your minutes, GitHub Free, Linux | 6 $ per month | computed: max(0, Your build minutes a month × GitHub-hosted rate for Linux 2-core (x64) - Included compute on GitHub Free (private repositories)) |
| Hosted bill minus the VM bill at your minutes (negative means hosted is cheaper) | -11 $ per month | computed: Your hosted bill at your minutes, GitHub Free, Linux - Your self-hosted VM cost a month |
| Break-even minutes a month, Linux, GitHub Free | 4,833.33 minutes per month | computed: (Your self-hosted VM cost a month + Included compute on GitHub Free (private repositories)) ÷ GitHub-hosted rate for Linux 2-core (x64) |
| Break-even build hours a month, GitHub Free | 80.6 hours per month | computed: Break-even minutes a month, Linux, GitHub Free ÷ Minutes in an hour |
| Break-even minutes a month, Linux, GitHub Team | 5,833.33 minutes per month | computed: (Your self-hosted VM cost a month + Included compute on GitHub Team) ÷ GitHub-hosted rate for Linux 2-core (x64) |
| Break-even build hours a month, GitHub Team | 97.2 hours per month | computed: Break-even minutes a month, Linux, GitHub Team ÷ Minutes in an hour |
| Hosted Linux 2-core price per hour, the ceiling for a VM that exists only while a job runs | 0.36 $ per hour | computed: Minutes in an hour × GitHub-hosted rate for Linux 2-core (x64) |
- Your self-hosted VM cost a month: 17 $ per month
- GitHub-hosted rate for Linux 2-core (x64): 0.006 $ per minute
- Included compute on GitHub Free (private repositories): 12 $ per month
- Included compute on GitHub Team: 18 $ per month
- Minutes in an hour: 60 minutes
Works out: Break-even build hours a month, GitHub Free; Break-even build hours a month, GitHub Team
*Corrected 2026-11-27: The opening gave a Windows break-even of 5,200 minutes without saying it assumes a $40 a month Windows VM; it now says so.*