Skip to main content
GitHub Actions Pricing and Minute Optimization

GitHub Actions Pricing and Minute Optimization

KU
· Founder & Chief Editor
• 8 min read•Updated •218 views

How GitHub Actions billing actually works in 2026, why one macOS matrix leg can dominate the bill, and the YAML changes that move the number.

Key takeaways

  • As of October 2026, GitHub Actions charges $0.006 a minute for a Linux 2-core runner, $0.010 for Windows and $0.062 for macOS.
  • Private repos draw first from included compute worth $12 on Free, $18 on Pro and Team, and $300 on Enterprise Cloud.
  • Public repos on standard runners and self-hosted runners cost nothing per minute.

GitHub Actions bills private-repo CI per minute once your plan's included compute runs out: as of October 2026, $0.006 for a Linux 2-core runner, $0.010 for Windows, $0.062 for macOS. Public repos on standard runners and self-hosted runners pay nothing per minute. Most surprising bills trace back to one thing: a macOS matrix leg nobody questioned.

Verified against

GitHub Actions runner pricing and plan allowances, actions/setup-node v7.1.0, actions/upload-artifact v7.0.2, against GitHub's billing docs, the 2026 Actions pricing-changes page and the actions release pages. Checked October 2026.

The usual shape: a bill that triples with the same commit volume, traced to one workflow running a macOS matrix on every push to every branch.

The model, plainly

GitHub now states each plan's included usage as a dollar amount, not a fixed minute count. The minute figures below are that dollar amount divided by the Linux 2-core rate:

PlanIncluded computeLinux-minute equivalentArtifact storageLinux 2-coreWindows 2-coremacOS 3/4-core
Free$12/month~2,000500 MB$0.006/min$0.010/min$0.062/min
Pro$18/month~3,0001 GB$0.006/min$0.010/min$0.062/min
Team$18/month~3,0002 GB$0.006/min$0.010/min$0.062/min
Enterprise Cloud$300/month~50,00050 GB$0.006/min$0.010/min$0.062/min

Rates are GitHub's published list prices as of October 2026, after the January 1, 2026 cut of "up to 39%" on hosted runners. Public repos run on standard hosted runners for free and don't touch the allowance, which is worth remembering when you decide what to open-source.

The OS is the real multiplier. Because the allowance is dollars, a macOS minute drains it about 10x faster than a Linux minute ($0.062 vs $0.006) and Windows about 1.7x. A modest macOS test suite can exhaust a Pro allowance before the month is half over.

Larger runners cost more again: a Linux 4-core is $0.012/min, 8-core $0.022, 16-core $0.042, with Arm64 versions cheaper ($0.008, $0.014, $0.026). They are only available on Team and Enterprise Cloud, where they can draw from included compute, and GitHub's billing docs are explicit that "larger runners are billed for public repositories". There is also a Linux 1-core option at $0.002/min for lightweight jobs.

Then there is storage, which people forget entirely. Artifacts are billed per GB against the small allowance in the table.

Self-hosted runners flip the model. GitHub's billing docs list them as free and say they don't reduce included usage. What you pay for instead is the infrastructure underneath: the EC2 instance, the on-prem box, the patching. For heavy sustained workloads that math often wins, but it is not free, just billed by someone else.

Where the money actually leaks

Ordered roughly by how much each one tends to save.

Cache your dependencies. If every job reinstalls npm packages or Go modules from scratch, you pay minutes to download the same tarballs forever. The built-in caching in the setup actions turns a multi-minute install into seconds on a warm cache.

YAML
# .github/workflows/ci.yml
- uses: actions/setup-node@v7
  with:
    node-version: 24
    cache: 'npm'

Stop redundant runs. Path filters so a docs-only commit does not trigger the full test suite, and concurrency with cancel-in-progress so a fresh push kills the now-pointless run from thirty seconds ago.

YAML
# .github/workflows/ci.yml
on:
  push:
    paths:
      - 'src/**'
      - 'package.json'

concurrency:
  group: ci-${{ github.ref }}
  cancel-in-progress: true

Have matrix discipline. A matrix of 3 OSes by 4 language versions is 12 jobs. Do you support all twelve, or did someone copy a template? Trim it to what you ship, and set fail-fast deliberately rather than by default.

Use Linux unless you have a reason not to. If you ship a macOS app you need Mac runners for the final build and notarization. You do not need them for linting. While you are in those workflows, check image pins: the macOS 14 runner retirement is breaking jobs that still pin macos-14.

Move the heavy, frequent jobs to self-hosted runners. For a workload that runs constantly and eats hours, self-hosted runners can be dramatically cheaper than hosted minutes. Keep occasional jobs on GitHub's fleet where you do not babysit a machine.

Set artifact retention deliberately. The default is 90 days (private repos can go up to 400). Most CI artifacts are useless after a day.

YAML
# .github/workflows/ci.yml
- uses: actions/upload-artifact@v7
  with:
    name: build
    path: dist/
    retention-days: 3

A worked example

A private repo on the Team plan ($18 of included compute, about 3,000 Linux minutes). CI runs 200 times a month.

The bad version: a 4-job matrix, two Linux and two macOS, 10 minutes each, no caching, running on every push including docs.

  • 2 Linux jobs: 200 x 2 x 10 = 4,000 minutes x $0.006 = $24
  • 2 macOS jobs: 200 x 2 x 10 = 4,000 minutes x $0.062 = $248

That is $272 at list price, minus the $18 allowance: about $254 a month for one repo's CI, and over 90% of it is the macOS legs.

The fixed version: one macOS job that only runs on tags, caching that shaves each Linux job to 4 minutes, path filters that cut runs to 140.

  • 2 Linux jobs cached: 140 x 2 x 4 = 1,120 minutes x $0.006 = $6.72
  • 1 macOS job, 10 tags a month: 10 x 10 = 100 minutes x $0.062 = $6.20

Total: $12.92, inside the $18 allowance. You pay nothing, with the same coverage on the things that matter. To run your own numbers, use our GitHub Actions cost calculator.

Billing errors and what they mean

  • "The job was not started because recent account payments have failed or your spending limit needs to be increased." Included usage is gone and the Actions budget is set to stop at its limit. Raise the budget in billing settings, or move the job to Linux or a self-hosted runner.
  • "The job was not started because your account is locked due to a billing issue." A payment failed; fix the payment method first, nothing in YAML helps.
  • Artifact upload fails on storage quota: shorten retention-days and delete old artifacts; storage is billed separately from minutes.
  • Larger runner jobs queue forever on a Free or Pro account: larger runners need Team or Enterprise Cloud.

Where this breaks

These numbers cover GitHub.com. GitHub Enterprise Server with its own runners has no per-minute billing at all. Negotiated enterprise contracts can differ from list price. And the self-hosted picture may change: GitHub announced a $0.002 per-minute platform charge for self-hosted runners, then postponed it in December 2025 with no new date, so recheck before you build a cost model on "self-hosted is free".

Questions people ask

How much does GitHub Actions cost per minute in 2026?

As of October 2026, GitHub's list prices are $0.006 per minute for a standard Linux 2-core runner, $0.010 for Windows 2-core, and $0.062 for macOS 3/4-core. Larger Linux runners run $0.012 (4-core) to $0.042 (16-core), with Arm64 cheaper. Private repos pay only after the plan's included compute ($12 on Free, $18 on Pro and Team) is used up.

Are GitHub Actions minutes free for public repositories?

Yes, on standard GitHub-hosted runners. Those jobs are free and do not reduce your included usage. The exception is larger runners, which GitHub bills even for public repositories. Private repositories draw from the plan's included compute first, $12 a month on Free, $18 on Pro and Team, $300 on Enterprise Cloud, then pay the per-minute rate.

Does GitHub charge for self-hosted runners?

Not as of October 2026. GitHub announced a $0.002 per-minute cloud platform charge for self-hosted runner usage starting March 1, 2026, then postponed it in a December 15, 2025 update. GitHub's billing docs currently list self-hosted runners as free. You still pay for the machines themselves, so budget the instance cost and maintenance time.

The decision, concretely

  • Bill jumped and nobody knows why? Open the billing usage report first. It is almost always a macOS or Windows leg, or an uncached workflow on every push.
  • Shipping a Mac or iOS app? Keep macOS, but only for release builds and tags. Lint and unit-test on Linux.
  • Sustained heavy CI on private repos? Price out self-hosted runners against $0.006 a minute; past a few thousand hours a month they usually win.
  • Reaching for larger runners? Cache first, then size up, and remember they bill even on public repos.

The call we'd make

Default to Linux, cache aggressively, kill redundant runs with concurrency, and only reach for self-hosted runners once a workload is heavy enough to justify owning the machine. Fix the macOS leg and the uncached install and most bills fall back to sane. If you are still shopping for a CI/CD platform and cost decides it, Actions is competitive as long as you respect the OS price gap. Ignore it and it will quietly bleed you.

Sources

React
Share this post
Cite this article
Plain text

Kiril Urbonas (2026). GitHub Actions Pricing and Minute Optimization. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/github-actions-pricing

Markdown

[GitHub Actions Pricing and Minute Optimization](https://www.devopsness.com/blog/github-actions-pricing) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)

KU

Kiril Urbonas

Founder & Chief Editor

586 articles
View all articles by Kiril Urbonas

You might have missed

Evergreen posts worth revisiting.