Ordinateur

Estimating Costs of AI in Software Development

October 17, 2026

As AI becomes more entrenched in the development cycle, it’s interesting to think of how much it costs. When we develop with agents, we’re not just paying the upfront token cost for the code itself. We’re paying for the agentic code review scan, the automatic PR summary that gets generated, the planning session needed to create the ticket, and more.

By OpenAI measurements, 1 token is approximately 4 characters. If we assume 1 line of code is 80 characters, we can assume that each line of code costs 20 tokens to generate. With that as the base, we can start to estimate the cost of each layer of AI assistance in the development process.

Baseline and totalAdded by a layerLighter shade: input tokens
Tokens per PR
Amplification vs pull request only
Pull requests per day
Tokens per day
Cost per day
Assumptions:
• $4.00 per 1M input tokens, $20.00 per 1M output tokens (GPT-5.6 Sol).
• It takes 1000 tokens to create a well-specified ticket that an agent can implement
• The input to automatic scans and PR summary is the exact same as the PR size
• Each rejection (code review) and defect requires creating a new PR of the same size
• Without AI assistance, an engineer can write 1 PR a day

All things considered, this spend is more modest than I expected. And it seems inline with Claude’s own estimates1. But let’s look at another view. The more frequently we create pull requests or commits, the more time we’re spending building and deploying software. Consider a deployment pipeline where a new artifact triggers builds of downstream dependencies, deploys to multiple environments, and then runs tests. We can estimate how many compute hours are being spent on builds.

Starting point and totalAdded by a stage
Compute hours per day
Compute hours per PR
Average runners busy (hours / 24)
Compute cost per day (c7.2xlarge)
Assumptions:
• A fresh build takes 30 minutes (I use Rust).
• Each dependency takes 15 additional minutes to build, sequentially
• Each environment has a 60 minute deployment
• After the deployment, integration tests run for 20 minutes

Each build/deployment/test wouldn’t be running on a single tenant machine, but it’s still interesting to think about these second order effects.


  1. “Across enterprise deployments, the average cost is around $13 per developer per active day and $150-250 per developer per month” — https://code.claude.com/docs/en/costs ↩