How big should a pull request be?
Small enough to read in one sitting: Google’s review guide calls 100 changed lines usually a reasonable size and 1,000 usually too large.[2] On 3,848 pull requests merged in 12 open-source projects from October 13 to 26, 2026, counted on November 20, 2026, the median changed 110 lines in 4 files; 48% changed under 100 lines, 23% more than 400 and 9.4% 1,000 or more.[1]
Size barely changed how fast the first reply came, but it changed the rest. Pull requests under 10 lines and those of 1,000 or more both got a first reply in under an hour (47 and 51 minutes). The first approval took 42 minutes against 3.0 hours, and the merge 4.7 hours against 8.3. Inside one project the gap is wider: at Grafana, a median 4.8 hours to merge under 100 lines against 24.1 hours at 500 or more.
Lines here are additions plus deletions as GitHub counts them, so a lockfile or generated file counts too. Kubernetes’ size labels skip files a repository marks as generated.[7] For how long each step takes, see how long code review takes.
Updated
What the guides and studies say
Google: about 100 lines, and count the files
“100 lines is usually a reasonable size for a CL, and 1000 lines is usually too large”, and a 200-line change spread across 50 files would usually be too large as well. When in doubt, write it smaller: reviewers rarely complain that a change is too small.[2]
Google in practice: a median of 24 lines
Across Google’s review logs, over 35% of changes touch a single file, about 90% touch fewer than 10, over 10% change a single line, and the median change is 24 lines.[3] Our 12 open-source projects ran larger: a median 110 lines, and 10% touched 20 files or more.
Microsoft: usefulness falls from 20 files
The more files in a review, the lower the share of comments the author found useful, and the drop became noticeable at 20 or more changed files.[4]
GitHub: one purpose per pull request
Small, focused pull requests are easier to review and safer to merge; when a change grows large, split it into smaller pull requests that each serve one purpose.[5]
DORA: small batches
Working in small batches predicts software delivery performance, and any batch that takes longer than a week to complete and check is too big.[6]
How to make a pull request smaller
Split a refactor from a behavior change
A rename, a move or a reformat goes in its own pull request, merged first. The behavior change that follows is then short enough to read line by line. The pull request checklist puts this first.
Stack the pieces
Open a chain of pull requests, each based on the branch of the one below, so each can be reviewed and merged on its own.[8]
Keep generated files apart
Lockfiles, snapshots and generated code inflate the count without needing a careful read. Commit them separately, or mark them generated so tools like Kubernetes’ size bot skip them.[7]
Ship behind a flag
Merge the parts of an unfinished feature with the feature turned off, so each part is small and nothing reaches users until the last one lands.
When it can’t be small, say why
Some changes are big by nature: a dependency upgrade, a generated client, a migration. Say so in the description, name the files that need a careful read, and list what was only moved. In our count, 41% of pull requests of 1,000 lines or more had two or more reviewers, against 19% under 10 lines.
A first reader for the long ones
IonWarp’s Code Review agent reads a pull request of any size and the code around the diff, and comments on the lines that need a fix, so a person’s review of a long change starts from a short list. A person still approves the merge.
Merged pull requests by size, October 13 to 26, 2026
Sizes use the line bands of Kubernetes’ size labels,[7] but unlike the labels, generated files count here. 3,848 pull requests from VS Code, Grafana, Elasticsearch, Rust, Rails, Kubernetes, Node.js, Kafka, Terraform, Django, React and PyTorch, counted on November 20, 2026 from GitHub’s API;[10] bots, rollups, backports and cherry-picks to release branches left out. Times are medians from ready for review. Request changes is the share with a Request changes review.[9] The projects differ in size too: the median pull request changed 166 lines in VS Code and 28 in Rails. Review times by project are in how long code review takes.
| Pull requests | Median files | First reply | First approval | Merge | Request changes | |
|---|---|---|---|---|---|---|
| XS, under 10 lines | Pull requests: 506 (13%) | Median files: 1 | First reply: 47 min | First approval: 42 min | Merge: 4.7 h | Request changes: 0.8% |
| S, 10 to 29 | Pull requests: 516 (13%) | Median files: 2 | First reply: 56 min | First approval: 1.2 h | Merge: 4.1 h | Request changes: 1.6% |
| M, 30 to 99 | Pull requests: 811 (21%) | Median files: 3 | First reply: 54 min | First approval: 1.1 h | Merge: 5.8 h | Request changes: 1.2% |
| L, 100 to 499 | Pull requests: 1,294 (34%) | Median files: 6 | First reply: 59 min | First approval: 1.8 h | Merge: 8.0 h | Request changes: 3.9% |
| XL, 500 to 999 | Pull requests: 359 (9%) | Median files: 12 | First reply: 1.1 h | First approval: 2.6 h | Merge: 7.1 h | Request changes: 3.9% |
| XXL, 1,000 or more | Pull requests: 362 (9%) | Median files: 25 | First reply: 51 min | First approval: 3.0 h | Merge: 8.3 h | Request changes: 3.0% |
| All | Pull requests: 3,848 | Median files: 4 | First reply: 56 min | First approval: 1.6 h | Merge: 6.3 h | Request changes: 2.5% |
Sources
Sources checked to : each one says the day we read it.
- IonWarp, How long code review takes: the same 3,848 pull requests, project by project, with links to each project’s merged pull requests, read .
- Google, Small CLs, read .
- Google (ICSE SEIP 2018), Modern Code Review: A Case Study at Google, read .
- Microsoft (ICSE 2015), Code Reviews Do Not Find Bugs: How the Current Code Review Best Practice Slows Us Down, read .
- GitHub Docs, Helping others review your changes, read .
- DORA, Working in small batches, read .
- Kubernetes on GitHub, Prow size plugin (size.go), read .
- GitHub Docs, About stacked pull requests, read .
- GitHub Docs, Pull request reviews, read .
- GitHub Docs, GraphQL API reference: Pulls (additions, deletions, changedFiles), read .

