Two platform teams run the same monorepo on GitHub Actions and pay different bills for the same 150,000 build minutes. One stays on hosted runners at $1,800 a month. The other runs an Actions Runner Controller pool on DigitalOcean for $1,315, including six hours of engineering time.
The gap is not a discount, and it is not free either. Self-hosting CI infrastructure trades a per-minute invoice for a fixed fleet plus a maintenance tax that most cost comparisons quietly leave out.
This analysis prices both sides at the list rates GitHub and DigitalOcean published on 30 November 2026. It then finds the monthly minute volume where the maintenance tax stops being a rounding error and starts deciding the architecture.
Assumption Box
- One self-hosted job equals a 4-core hosted runner minute, priced at $0.012 on Linux x64.
- An 8 vCPU DigitalOcean CPU-Optimized droplet costs $168 a month and runs two such jobs at once.
- Fleet duty cycle is 45 percent, giving 39,420 job minutes per droplet per month. [assumption]
- Platform engineering time is billed at $95 a loaded hour, four to twelve hours a month by scenario. [assumption]
- Artifact storage, monitoring and egress are held at $25 a month. [assumption]
- GitHub seat costs and repository storage are identical on both paths, so they are excluded.
What the November 2026 price list actually says
GitHub no longer sells Actions in minutes only. Your plan includes a dollar amount of compute usage, and each runner type deducts its own per-minute rate from that balance.
GitHub Team includes $18 a month of compute, GitHub Enterprise Cloud includes $300. A standard Linux 2-core runner costs $0.006 a minute, so the Team allowance covers roughly 3,000 minutes on the smallest x64 runner.
Larger runners scale faster than their core count suggests. The 4-core Linux runner bills at $0.012 a minute, the 8-core at $0.022, and the 16-core at $0.042.
The most expensive line item in most CI bills is not time, it is runner size. A 16-core job that also runs 30 minutes costs seven times what the same job costs on a 2-core runner, before anyone asks whether the parallelism was needed.
| Runner | Rate per minute | Monthly cost at 100,000 minutes |
|---|---|---|
| Linux 2-core x64 | $0.006 | $600 |
| Linux 4-core x64 | $0.012 | $1,200 |
| Linux 8-core x64 | $0.022 | $2,200 |
| Linux 16-core x64 | $0.042 | $4,200 |
| Linux 8-core arm64 | $0.014 | $1,400 |
The arm64 row deserves attention. An 8-core arm64 runner costs 36 percent less than the 8-core x64 runner, and most Go, Node and Python builds compile just as well on it.
The self-hosted reference footprint
Self-hosted runners carry no per-minute charge at all, and they do not consume the included compute balance. The invoice moves entirely to the machines you rent and the people who keep them alive.
The reference fleet is deliberately modest. One 4 vCPU control-plane droplet at $48 hosts the Actions Runner Controller, which creates and destroys runner pods on demand.
Two to eleven CPU-Optimized droplets at $168 each run the jobs, sized 8 vCPU and 16 GiB, each holding two concurrent 4-core-equivalent jobs.
Storage, monitoring and artifact retention add $25. Engineering time adds four to twelve loaded hours a month, and this is the line that decides the whole comparison.
A self-hosted minute is not cheaper than a hosted minute until the fleet is busy enough to amortize the people who run it. At a 45 percent duty cycle, one droplet delivers 39,420 job minutes for $168, or $0.00426 a minute against GitHub's $0.012.
Quick Decision Matrix
| Decision driver | GitHub-hosted runners | Self-hosted ARC on DigitalOcean |
|---|---|---|
| Cost shape | Linear per minute, zero fixed cost | Fixed fleet plus engineering hours |
| Break-even | Always cheaper under 58,541 minutes a month | Cheaper from 83,094 minutes at six hours of upkeep |
| Cold-start latency | 8 to 25 seconds to a ready VM [assumption] | 30 to 90 seconds unless runners stay warm |
| Ops burden | None beyond workflow files | Image patching, autoscaling, cache storage |
| Best fit | Teams under 40 engineers with bursty builds | Teams above 150,000 minutes with a platform owner |
Scenario A: 45,000 minutes, hosted still wins
A 20-engineer product team runs 45,000 job minutes a month across pull requests and nightly suites. On 4-core hosted runners that is $540 before the $18 Team allowance.
The self-hosted equivalent needs two droplets for redundancy, so the fleet alone costs $336. Control plane, storage and four engineering hours bring the total to $789.
Hosted runners are $249 cheaper, and the gap is entirely maintenance. The team's CI is not large enough to pay a platform engineer.
The temptation at this size is to self-host anyway because the marginal droplet minute looks so cheap. That reasoning counts the droplet and forgets the incident where a runner image updates its kernel and half the test suite stops starting.
At this volume, a self-hosted pool is a hobby with an on-call rota. The saving per minute looks attractive on paper and disappears the first time a runner image breaks on a Friday.
Scenario B: 150,000 minutes, the crossover
A 60-engineer organization runs 150,000 job minutes a month. Hosted compute at $0.012 a minute costs $1,800.
Four droplets deliver 157,680 minutes of capacity at a 45 percent duty cycle for $672. With $48 for the control plane, $25 for storage and six engineering hours at $95, the fleet costs $1,315.
Self-hosting saves $485 a month, or 27 percent, and the saving recurs every month without new work.
The break-even sits between these scenarios. Solve for minutes where hosted equals self-hosted with a $643 fixed monthly overhead and a $0.00426 marginal droplet minute, and the answer is 83,094 minutes.
Change the engineering estimate to four hours and the threshold drops to 58,541 minutes. Change it to twelve hours and the threshold climbs to 156,755 minutes.
Scenario C: 420,000 minutes, the saving compounds
A 150-engineer monorepo with matrix builds across four languages runs 420,000 job minutes a month. Hosted compute costs $5,040.
Eleven droplets carry the load for $1,848. Twelve engineering hours for capacity planning and image maintenance bring the total to $3,061, a saving of $1,979 or 39 percent.
This is the regime where self-hosting becomes an engineering discipline rather than a side project. The fleet needs a queue-depth autoscaler, a golden runner image, and a cache layer that survives droplet churn.
Above roughly 300,000 minutes, the marginal saving per added droplet is larger than the marginal maintenance cost. That is the point where the platform team pays for itself.
The fleet also becomes a shared service. Once CI, release automation and scheduled security scans share one pool, the fixed cost is spread across teams that never had a runner budget of their own.
What the hosted bill buys besides minutes
The hosted path includes more than a runner. It includes fresh images, managed caching, static IP options for larger runners, and a support boundary that ends at GitHub's front door.
A self-hosted pool keeps none of that for free. Image freshness becomes a cron job, caching becomes an object store, and the support boundary ends at your own on-call rotation.
When a build breaks at 2 a.m., the hosted team waits for a status page. The self-hosted team opens a terminal and finds out whether the droplet, the runner, or the network died.
Hosted minutes are also a latency product. A cold start on a GitHub-hosted runner lands in single-digit seconds, while a cold autoscaled droplet takes closer to a minute, and that difference compounds across hundreds of pull requests a week.
The threshold that matters more than volume
Every number above rests on a 45 percent duty cycle. That assumption is the real lever, and it deserves a sensitivity check.
At a 16 percent duty cycle, one droplet's marginal cost per 4-core job minute equals GitHub's $0.012 exactly. Below that utilization, the droplet is idle capital regardless of volume.
At 30 percent, the marginal cost falls to $0.0064. At 60 percent, it reaches $0.0032, and self-hosting wins even with a generous maintenance estimate.
Measure the duty cycle before pricing the fleet. Split job minutes by peak concurrency, not by monthly total, because a fleet sized for a two-hour nightly peak sits idle for the other 22 hours.
This is the same trap that makes self-hosted observability look cheap. The Datadog versus OpenTelemetry TCO analysis found the managed bill follows volume while the self-hosted bill follows peak capacity, and CI behaves identically.
How to measure the duty cycle before you commit
The monthly total hides the shape of demand. Pull the workflow run history and group durations by hour to see where concurrency actually sits.
One query against the runs endpoint returns the start time and conclusion for every run in a window, which is enough to reconstruct peak concurrency without a third-party dashboard.
If peak concurrency lasts less than three hours a day, a self-hosted fleet sized for that peak will sit idle for the other 21. That is the pattern where hosted minutes keep winning long after the monthly total looks large.
If concurrency stays flat through the working day, the fleet amortizes cleanly and the 45 percent duty cycle in this analysis is conservative.
Migration checkpoints in Terraform, Go and ARC
Start with an isolated runner pool and route one non-critical workflow to it. Keep hosted runners as the default until the pool has survived two release cycles.
The Terraform below creates the droplets, tags them for autoscaling, and injects a registration token through cloud-init. The token is short-lived and should come from a secret manager, not a variable file.
resource "digitalocean_droplet" "runner" {
count = var.runner_count
name = "gha-runner-${count.index}"
size = "c-8" # 8 vCPU / 16 GiB, $168 per month
image = "ubuntu-24-04-x64"
region = "nyc3"
vpc_uuid = digitalocean_vpc.ci.id
tags = ["gha-runner", "ephemeral"]
ssh_keys = [var.ssh_key_fingerprint]
user_data = templatefile("${path.module}/cloud-init.yaml", {
runner_token = var.runner_registration_token
runner_group = "arc-ci"
})
}
Autoscaling on queue depth is the next step. The Go service below reads queued workflow runs from the GitHub API and adjusts the droplet count when the queue exceeds or falls below the pool's concurrency.
package main
import (
"context"
"encoding/json"
"net/http"
"os"
"time"
)
type runs struct {
TotalCount int `json:"total_count"`
}
func queued(ctx context.Context, owner, repo, token string) (int, error) {
url := "https://api.github.com/repos/" + owner + "/" + repo + "/actions/runs?status=queued"
req, _ := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
req.Header.Set("Authorization", "Bearer "+token)
req.Header.Set("Accept", "application/vnd.github+json")
res, err := http.DefaultClient.Do(req)
if err != nil {
return 0, err
}
defer res.Body.Close()
var out runs
if err := json.NewDecoder(res.Body).Decode(&out); err != nil {
return 0, err
}
return out.TotalCount, nil
}
func main() {
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
defer cancel()
n, err := queued(ctx, os.Getenv("GH_OWNER"), os.Getenv("GH_REPO"), os.Getenv("GH_TOKEN"))
if err != nil {
panic(err)
}
// Scale the droplet pool so queued runs drain within one billing minute.
target := (n + 1) / 2
if target < 2 {
target = 2
}
scalePool(ctx, target) // wraps the DigitalOcean droplets API
}
Finally, pin the pool in the workflow file so routing is explicit rather than accidental. A label mismatch sends the job back to hosted minutes without warning.
jobs:
test:
runs-on: [self-hosted, linux, x64, arc-ci]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- run: go test ./... -race
The migration only pays off if it stays complete. A pool that serves 90 percent of jobs still leaves the remaining 10 percent on the most expensive runner sizes.
For the team-scale question behind that routing decision, the 50-engineer architecture break-even uses the same cost-per-engineer method.
Where self-hosted CI fails quietly
Untagged runner images drift until a build depends on a package that only exists on one droplet. Pin the image digest and rebuild weekly on a schedule.
Cache storage is the second failure. Hosted runners share a managed cache; a self-hosted pool needs an object store and a cache action configured for it, or every job rebuilds from scratch and burns the saving in minutes.
Third, concurrency limits. A GitHub Team organization caps concurrent jobs, and a self-hosted pool does not raise that ceiling. Scaling droplets beyond the cap produces idle servers.
None of these failures appears in the first invoice. They appear in month three, as a slow rise in build duration and a platform engineer's calendar.
Frequently asked questions
Are self-hosted runners really free on GitHub?
Yes for Actions compute. GitHub documents self-hosted runners as free and notes they do not draw from the included compute usage. You still pay for the machines, storage and the people who operate them, and those costs usually dominate.
What is the actual break-even in minutes?
With a $643 monthly fixed overhead and a $0.00426 marginal droplet minute against a $0.012 hosted rate, the break-even is 83,094 job minutes a month. Fewer engineering hours lower it toward 58,541; more raise it toward 156,755.
Does the arm64 runner change the math?
It shrinks the hosted side. An 8-core arm64 hosted runner bills at $0.014 a minute instead of $0.022, so the same workload costs 36 percent less hosted and the break-even volume rises. Compare arm64 before assuming x64 rates.
How much engineering time should I budget?
Four hours a month for a stable pool of two to four droplets, six for a pool that autoscales, and twelve or more once you own golden images, cache infrastructure and capacity planning. Budget the figure you would defend in a postmortem, not the optimistic one.
Should we self-host runners to save money at 60,000 minutes a month?
Usually not. At 60,000 minutes the hosted bill is about $720 and the self-hosted fleet is near $790 before any incident. Self-hosting becomes defensible when volume, utilization and a platform owner arrive together.
The decision in one line
Hosted runners price flexibility per minute, and self-hosted runners price predictability per engineer. The crossover is not a fixed volume but a band that moves with utilization and maintenance hours.
Under 60,000 monthly minutes, stay hosted. Above 150,000 minutes with a platform owner, the fleet pays for itself. Between them, measure the duty cycle before signing up for either.
Both numbers move with the same two inputs, so recalibrate them whenever the fleet duty cycle or the maintenance burden changes by more than a few hours a month.
comments
Add a comment