GitHub-hosted runner minutes vs a self-hosted VM: the break-even
The question
At how many build minutes a month is a self-hosted GitHub Actions runner cheaper than GitHub-hosted runners?
What we found
GitHub lists per-minute rates for GitHub-hosted runners of $0.006 for Linux 2-core (x64), $0.005 for Linux 2-core (arm64), $0.010 for Windows 2-core, and $0.062 for macOS 3-core or 4-core. https://docs.github.com/en/billing/concepts/product-billing/github-actions GitHub says each job's usage is rounded up to the nearest whole minute. https://docs.github.com/en/billing/reference/actions-minute-multipliers GitHub lists included compute for private repositories of $12 a month on GitHub Free, $18 on GitHub Pro and on GitHub Team, and $300 on GitHub Enterprise Cloud, and says it is a dollar amount, not a fixed number of minutes. https://docs.github.com/en/billing/concepts/product-billing/github-actions GitHub lists self-hosted runners as free and says their usage does not reduce the included compute. https://docs.github.com/en/billing/concepts/product-billing/github-actions Past the included amount GitHub bills the payment method on file, and without one usage is blocked once the included amount is used up. https://docs.github.com/en/billing/concepts/product-billing/github-actions Hetzner lists the CPX22 shared-vCPU server (2 vCPU, 4 GB RAM, Helsinki location) at EUR 0.0272 an hour and EUR 16.99 a month excluding VAT, and says the monthly price is a cap on the bill. https://www.hetzner.com/cloud/regular-performance Hetzner lists the CX23 (2 vCPU, 4 GB) at EUR 5.99 a month and EUR 0.0096 an hour, but marks every Cost-Optimized plan as currently unavailable on 2026-11-21. https://www.hetzner.com/cloud/cost-optimized By our arithmetic, GitHub's $0.006 a minute is $0.36 an hour for a Linux 2-core runner, or $0.18 per vCPU-hour; Hetzner's CPX22 EUR 0.0272 an hour is EUR 0.0136 per vCPU-hour. The site's earlier vCPU-hour article quotes $0.004 at Hetzner for a shared plan, which is the cheaper class of plan listed as unavailable today.
Your number
Inputs: M = build minutes a month (default 3,000; range 0 to 100,000), r = GitHub rate per minute for your OS (Linux 0.006, Windows 0.010, macOS 0.062 dollars), I = included compute in dollars for your plan (Free 12, Pro or Team 18, Enterprise Cloud 300), V = self-hosted VM cost a month in dollars (default 17; enter the VM price per hour x 730 hours if it runs all month, or the monthly cap if the provider has one).
Formula 1 (an always-on VM): hosted bill = max(0, M x r - I). Self-hosted bill = V. Break-even M* = (V + I) / r minutes a month; above it the VM is cheaper. Here the VM is assumed to take all builds, so the included dollars are not used.
Formula 2 (a VM that exists only while a job runs): it beats hosted when its price per hour P is below 60 x r, which is $0.36 an hour for Linux and $0.60 for Windows, before counting boot time and idle time.
Worked examples (assumed readers; every step shown):
- Reader A: Linux, GitHub Free: r = $0.006 a minute, I = $12, V = $17 a month (assumed 24/7 VM price). Break-even M* = (17 + 12) / 0.006 = 4833.3 minutes, about 80.6 hours of builds a month. At 3,000 minutes the hosted bill is max(0, 3,000 x 0.006 - 12) = $6; at 5834 minutes it is 5834 x 0.006 - 12 = $23 against $17.
- Reader B: Linux, GitHub Team: r = $0.006 a minute, I = $18, V = $17 a month (assumed 24/7 VM price). Break-even M* = (17 + 18) / 0.006 = 5833.3 minutes, about 97.2 hours of builds a month. At 3,000 minutes the hosted bill is max(0, 3,000 x 0.006 - 18) = $0; at 6834 minutes it is 6834 x 0.006 - 18 = $23 against $17.
- Reader C: Windows, GitHub Free: r = $0.01 a minute, I = $12, V = $40 a month (assumed 24/7 VM price). Break-even M* = (40 + 12) / 0.01 = 5200 minutes, about 86.7 hours of builds a month. At 3,000 minutes the hosted bill is max(0, 3,000 x 0.01 - 12) = $18; at 6200 minutes it is 6200 x 0.01 - 12 = $50 against $40.
Where the rule breaks
GitHub's per-minute rates and included amounts above are for private repositories; the page also notes that runners for Copilot code review set up through Actions Runner Controller are billed at different rates. https://docs.github.com/en/billing/concepts/product-billing/github-actions The break-even counts only the VM's price: it ignores setup, patching, storage and traffic, and Hetzner prices are in euros excluding VAT, so convert at your own rate and add VAT before entering V. https://www.hetzner.com/cloud/regular-performance The macOS rate ($0.062 a minute) needs Mac hardware to self-host, so the VM formula does not apply to it, and a VM with a different core count is not compared like for like with the 2-core rate. https://docs.github.com/en/billing/concepts/product-billing/github-actions
Sources
- GitHub Actions billing, https://docs.github.com/en/billing/concepts/product-billing/github-actions, read 2026-11-21
- Actions runner pricing and rounding, https://docs.github.com/en/billing/reference/actions-minute-multipliers, read 2026-11-21
- Hetzner Cloud Regular Performance, https://www.hetzner.com/cloud/regular-performance, read 2026-11-21
- Hetzner Cloud Cost-Optimized, https://www.hetzner.com/cloud/cost-optimized, read 2026-11-21