Skip to main content

CircleCI Credits Guide

How CircleCI's credit-based billing works, what each resource class costs, and how to optimize your spending.

What Are CircleCI Credits?

CircleCI uses a credit-based system instead of minutes. Credits are consumed based on the compute resources your jobs use. Different resource classes (CPU, RAM, executor type) consume credits at different rates per minute.

This gives you more flexibility than a flat minute-based system: a lightweight lint job uses fewer credits per minute than a heavy compilation job.

Free Plan Allowance

Monthly Credits

30,000

Equivalent Linux Medium

~2,500 min

Credits reset monthly. Paid plans start at 25,000 credits/month with additional credits at volume discounts.

Docker Executor Resource Classes

Docker executors are the most common and cost-effective option. Jobs run in Docker containers with configurable CPU and RAM.

Resource ClassvCPURAMCredits/Min
small12 GB5
medium24 GB10
medium+36 GB15
large48 GB20
xlarge816 GB40
2xlarge1632 GB80

Machine Executor Resource Classes

Machine executors provide a full VM with Docker pre-installed. Use these when you need Docker-in-Docker, privileged mode, or specific kernel features.

Resource ClassvCPURAMCredits/Min
medium27.5 GB10
large415 GB20
xlarge832 GB40
Machine executors have a minimum 1-minute charge per job, even for sub-minute jobs. Docker executors bill per-second after the first 10 seconds.

macOS Resource Classes

macOS executors are the most expensive, primarily used for iOS and macOS app builds.

Resource ClassvCPUCredits/Min
macos.m1.medium.gen14100
macos.m1.large.gen18200

A 20-minute iOS build on macos.m1.medium.gen1 consumes 2,000 credits — almost 7% of the free plan in a single run.

Optimization Strategies

Right-Size Resource Classes

Most lint and test jobs run fine on small (5 credits/min) instead of the default medium (10 credits/min). That's a 50% reduction for the same wall-clock time.

Use Docker Layer Caching

Enable Docker layer caching (DLC) at 200 credits/run to save minutes of image rebuilding. Pays for itself if your Docker builds take more than 2 minutes.

Leverage Dependency Caching

Use save_cache and restore_cache for node_modules, pip packages, and build artifacts. Cache restoration is fast and free.

Use Workflows with Filters

Trigger expensive jobs only on specific branches or tags. Run full integration suites on main, quick checks on feature branches.

Monitor Credit Consumption

Track which jobs consume the most credits and optimize the biggest offenders first. A single job often accounts for 40%+ of total credit usage.

Track Your CircleCI Credit Usage

Build Quota monitors your CircleCI credits alongside GitHub Actions, Bitrise, and GitLab CI — all in one dashboard.

Start Tracking Free

Related Guides