Guides

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

  1. 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.

  2. 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]

  3. 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]

  4. 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.

  5. 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.

  6. 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.

    IonWarp Code Review

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.

Merged pull requests by size, October 13 to 26, 2026
Pull requestsMedian filesFirst replyFirst approvalMergeRequest changes
XS, under 10 linesPull requests: 506 (13%)Median files: 1First reply: 47 minFirst approval: 42 minMerge: 4.7 hRequest changes: 0.8%
S, 10 to 29Pull requests: 516 (13%)Median files: 2First reply: 56 minFirst approval: 1.2 hMerge: 4.1 hRequest changes: 1.6%
M, 30 to 99Pull requests: 811 (21%)Median files: 3First reply: 54 minFirst approval: 1.1 hMerge: 5.8 hRequest changes: 1.2%
L, 100 to 499Pull requests: 1,294 (34%)Median files: 6First reply: 59 minFirst approval: 1.8 hMerge: 8.0 hRequest changes: 3.9%
XL, 500 to 999Pull requests: 359 (9%)Median files: 12First reply: 1.1 hFirst approval: 2.6 hMerge: 7.1 hRequest changes: 3.9%
XXL, 1,000 or morePull requests: 362 (9%)Median files: 25First reply: 51 minFirst approval: 3.0 hMerge: 8.3 hRequest changes: 3.0%
AllPull requests: 3,848Median files: 4First reply: 56 minFirst approval: 1.6 hMerge: 6.3 hRequest changes: 2.5%

Sources

Sources checked to : each one says the day we read it.

  1. 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 .
  2. Google, Small CLs, read .
  3. Google (ICSE SEIP 2018), Modern Code Review: A Case Study at Google, read .
  4. Microsoft (ICSE 2015), Code Reviews Do Not Find Bugs: How the Current Code Review Best Practice Slows Us Down, read .
  5. GitHub Docs, Helping others review your changes, read .
  6. DORA, Working in small batches, read .
  7. Kubernetes on GitHub, Prow size plugin (size.go), read .
  8. GitHub Docs, About stacked pull requests, read .
  9. GitHub Docs, Pull request reviews, read .
  10. GitHub Docs, GraphQL API reference: Pulls (additions, deletions, changedFiles), read .

FAQ

Quick answers

How many lines should a pull request be?

Around 100 changed lines is usually reasonable and 1,000 usually too large, by Google’s guide. On 3,848 merged open-source pull requests, the median was 110 lines in 4 files.

What is the average pull request size?

On 3,848 pull requests merged in 12 open-source projects from October 13 to 26, 2026, the median changed 110 lines in 4 files. A quarter changed more than 362 lines, and a tenth more than 926.

Is a 1,000-line pull request too big?

Usually, by Google’s guide. 9.4% of the merged pull requests we counted were that big. Their first approval took a median 3.0 hours, against 42 minutes for those under 10 lines.

Do bigger pull requests take longer to merge?

Yes. Inside 9 of the 11 projects with any, pull requests of 500 lines or more took longer to merge than those under 100. Across all 12, the median went from 4.7 hours under 10 lines to 8.3 hours at 1,000 or more.

What do the Kubernetes size labels mean?

size/XS is under 10 changed lines, S 10 to 29, M 30 to 99, L 100 to 499, XL 500 to 999 and XXL 1,000 or more, leaving out files marked as generated.

How did you count pull request size?

Additions plus deletions and changed files, from GitHub’s API, for every pull request merged October 13 to 26, 2026 in 12 projects, with bots, rollups, backports and cherry-picks left out.

A first reviewer on every pull request.

Get started

See pricing

By , Co-founder, IonWarp. Published .

Co-founder of Segment (acquired by Twilio, 2020). Builds IonWarp at Winding AI, Inc. See something wrong? Send us a correction.