Free tool · Randomization · PlanningUpdated November 1, 2026

Randomization block size calculator: valid sizes, predictability and blocks per stratum

Enter an allocation ratio such as 1:1, 2:1 or 3:2:1, the number of strata and your target per stratum. The tool lists the valid block sizes, shows how often an open-label site could guess the next assignment, recommends a mix of sizes, and prints a demo list so you can see what a block looks like.

  • Any ratio, 2 to 6 arms
  • Exact predictability, not a rule of thumb
  • Demo list only, never a production list

Free sandbox · No credit card · 21 CFR Part 11 compliant

  • ISO 27001 certified
  • 21 CFR Part 11 compliant
  • GDPR compliant
  • EU and US data hosting
  • HIPAA compliant
  • ICH GCP E6(R3) compliant
Demo: chance an open-label site guesses the next assignment, 1:1 allocation
Block sizePer armRight guessCertain per block
Block of 21:175.0%1.00
Block of 42:270.8%1.33
Block of 63:368.3%1.50
Block of 84:466.6%1.60
Chance level is 50%. Exact values from the tool; they assume the observer knows the block size.

Choosing a block size in brief

  • A valid block size is a multiple of the sum of the (reduced) ratio. For 1:1 that means 2, 4, 6, 8; for 2:1 it means 3, 6, 9, 12; for 3:2:1 it means 6, 12, 18. A ratio written 4:2 reduces to 2:1, so 3 is the smallest block, not 6.
  • Small blocks balance groups tightly and make assignments easier to guess. With 1:1 and blocks of 4, a site that sees every assignment can guess the next one about 71% of the time; with blocks of 8, about 67%. Chance is 50%.
  • Mixing block sizes at random, with the sizes kept from sites, is the usual defence. If the size is hidden, the guessing figure is below the fixed-size value.
  • Strata multiply the problem. Each stratum runs its own blocks, so many strata and a small trial means many incomplete blocks and weaker balance at the end.
  • Blinding and concealed allocation matter more than block size. In a double-blind trial with central allocation, a site cannot see prior assignments, so predictability is largely a theoretical risk.

Free tool

Find valid block sizes and compare the risk

Defaults: 1:1 allocation, 4 strata, 60 participants per stratum, mixed blocks. Try 2:1, 3:2:1 or 1:1:1, switch between fixed and mixed sizes, and change the seed to see a different demo list.

Whole numbers separated by colons: 1:1, 2:1, 3:2:1, 1:1:1

Block sizes in the list
Valid sizes
2, 4, 6…
multiples of 2
Guessable
69%
chance level 50%
Blocks / stratum
~10
mean size 6.0
Predictability by block size
BlockPer armRight guessCertain / blockMax drift
21:175.0%1.000.50
42:270.8%1.331.00
63:368.3%1.501.50
84:466.6%1.602.00
105:565.3%1.672.50
126:664.3%1.713.00
147:763.5%1.753.50
168:862.8%1.784.00

Recommended mix 4, 6, 8, drawn at random. The right-guess figure is the average of those sizes, and it is an upper bound: it assumes the observer knows which size is in use, which a properly concealed mix does not reveal. Within a block an arm's count can drift up to 2.0 participants from its share. With 4 strata the worst-case end-of-study drift is 8.0. Generate at least 67 rows per stratum so the list never runs out mid-block.

Sample list for one stratum (demo only)

Demo only, not a production randomisation list. This one is seeded in your browser and anyone with the seed can reproduce it.

B B A A B AA B A B B A A BA B B AB B A B A AA B A B A B A BA B A BA B A A B BB A B B A AA B B B B A A AA A B B B A

Each grey group is one permuted block; arms are A (1), B (1). The last block may run past the target.

Planning aid, not validated software; runs in your browser and stores nothing. Predictability is exact for an observer who knows the ratio, the block size and the assignments so far in the block, and always guesses an arm with the most places left; double-blind trials with concealed allocation are far less exposed. Max drift is the largest distance of any arm's count from its proportional share inside a block. A real list is generated and held by whoever controls allocation, not copied from a web page.

The basics

What permuted block randomization does, and why block size matters

Simple randomization, a coin toss for each participant, can leave groups noticeably unequal in a small trial. Permuted block randomization removes that: assignments are made in blocks, each containing the arms in exactly the ratio you want, in random order. Within a block of 4 for 1:1 allocation there are always two A and two B, in one of six equally likely orders. After every completed block the groups are exactly balanced, and inside a block they can never be more than half a block apart. For trials with a time trend in recruitment (the early participants differ from the later ones) or with several sites, that guarantee is valuable, and it is the reason block randomization is the default in many trials. The randomization glossary entry defines the terms, and the block randomization software page describes how it runs in a platform.

The cost is predictability. If the assignments are known as they happen (an open-label drug given by the investigator, or an unmasked packaging pattern) and the block size is known too, the last assignment in a block is certain, and the ones near the end can be guessed with high probability. An investigator who can guess the next assignment can, even unintentionally, steer a participant who looks sicker or healthier into the preferred arm, which is selection bias. Smaller blocks make this worse: in blocks of 2 every second assignment is certain. This is the trade-off the tool quantifies. The wider methods guide to blinding explains why concealment and masking come first.

Method

How valid sizes and predictability are calculated

Valid sizes. Reduce the ratio by its greatest common divisor (4:2:2 becomes 2:1:1), sum the parts to get S, and every block size is a multiple of S. The tool lists the first eight multiples up to 24. For 3:2:1, S = 6, and a block of 12 contains six A, four B and two C.

Predictability. Assume the worst reasonable observer: someone who knows the ratio, the block size and the assignments so far in the current block, and always guesses an arm with the most places left. In a block with counts c remaining of R slots, the next assignment is arm a with probability c_a / R, so that guess is right with probability max(c) / R. The tool enumerates every path through the block exactly and averages over positions. For 1:1 and a block of 4, the guess is right 50% of the time at the first slot, 2/3 at the second, 2/3 at the third on average and always at the last, so (0.5 + 0.667 + 0.667 + 1) / 4 = 70.8%. For a block of 2 it is (0.5 + 1) / 2 = 75%. The tool also reports the expected number of assignments per block that are certain (1.33 for a block of 4) and the largest distance any arm’s count can drift from its proportional share inside a block.

Mixed sizes. For a recommended mix the tool takes three consecutive multiples, starting from the smallest multiple that makes the block at least 4: for 1:1 this gives 4, 6, 8; for 2:1, 6, 9, 12; for 3:2:1, 6, 12, 18. It averages the single-size guess rates, and states that this average assumes the observer knows which size is in use; an observer who does not know it cannot do better than that, and in practice does worse. With 4, 6, 8 at 1:1 the average is 68.6%.

Blocks per stratum. For a fixed size, blocks needed are the target divided by the size, rounded up. For a mix, divide by the mean size for the expected count. To make sure the list never runs out mid-block, generate at least the target plus the largest block size minus one rows per stratum; with 60 per stratum and a maximum block of 8, that is 67. Across strata, the worst case at the end of enrolment is that every stratum has a partly filled block, so the maximum imbalance is bounded by the number of strata times the in-block drift. With 4 strata and blocks up to 8 for 1:1, the bound is 4 × 2.0 = 8.0 participants of drift in total; the expected imbalance is much smaller.

Reference values

Exact guess rates by ratio and block size

For an observer who knows the block size and the assignments so far. “Mix” is the tool’s recommended mix, averaged over its sizes.

RatioSmallest valid block and next sizesRight-guess rate at each sizeRecommended mix, average rate
1:12, 4, 6, 875.0%, 70.8%, 68.3%, 66.6%4, 6, 8: 68.6%
2:13, 6, 9, 1277.8%, 74.4%, 72.8%, 71.7%6, 9, 12: 73.0%
3:2:16, 12, 18, 2462.8%, 58.7%, 56.8%, 55.6%6, 12, 18: 59.4%
1:1:13, 6, 9, 1261.1%, 56.1%, 53.2%, 51.2%6, 9, 12: 53.5%

Chance level is 50% for two arms and 33% for three. The guess rate falls with block size and with the number of arms. Unequal ratios are easier to guess at a given size, because the larger arm is the better default.

Configure randomization in the same system as your eCRFs

Set arms, block size and stratification in the free sandbox, enrol test participants and watch each allocation land in the audit trail. Pay only at go-live.

Set up randomization free

In practice

Practical rules for choosing block sizes

There is no universally correct block size, but several rules cover most trials. In a blinded trial with central allocation, a block of 4 or 6 for 1:1 is common and low risk, because no one at the site sees the pattern. In an open-label trial, use a mix of larger blocks and keep the sizes confidential; a fixed block of 4 in an open-label trial is the classic route to predictability. Where the study needs both tight balance and low predictability, a different method may be better: consider a minimization approach when there are many stratification factors, because it balances margins without per-stratum blocks.

Keep the block size out of documents that sites read. ICH E9 advises documenting the details of the randomization scheme, including block sizes, separately from the protocol so that investigators do not see them (check against the current text). Many teams therefore state only “permuted blocks of random size” in the protocol and keep the exact sizes in a randomization specification held by the statistician or the system administrator.

Choose strata sparingly. Each additional stratifying factor multiplies the number of blocks in play and the number of incomplete blocks at the end; three binary factors make eight strata, and a trial of 80 then has an average of ten participants per stratum, hardly more than one block of 8. Stratifying by site alone is common and defensible; adding more factors needs a reason, and above about four, minimization or covariate-adaptive designs are worth discussing with a statistician. If a trial needs unequal arms, remember the ratio fixes the smallest block: 3:2:1 cannot be blocked below 6.

Finally, a list printed on a web page is a demonstration, not a randomization schedule. A production list is generated with a documented, validated procedure, kept by someone independent of enrolment, and held in the system that performs allocation so every assignment is traceable. See the randomization list generator for another planning list, and the clinical trial randomization software page and EDC with randomization for how allocation sits with the rest of the study data.

In Capture

Block randomization and stratification inside the study

Capture includes randomization in the same platform as the eCRFs, eConsent and ePRO. You set the arms, block size and stratification once at study setup, and allocation then happens when a participant is enrolled, the same way at every site. If you need random mixed block sizes, check that your configuration supports them in the free sandbox or on a demo before you finalise the protocol.

  • Block randomization with a configurable block size.
  • Stratification by site or another factor.
  • Every allocation logged in the same field-level audit trail as the rest of the study.
  • Blinded roles never receive treatment-arm values, enforced by masked database views and row-level security.
Clinical trial randomization software
Randomization · stratified blocks · 1:1
Site 01

Baseline severity: moderate

Block 7 of 12

Site 01

Baseline severity: severe

Block 4 of 12

Site 02

Baseline severity: moderate

Block 6 of 12

Subject 01-0048 randomized

Blinded

Randomization no.

R-0166

Treatment arm

●●●●●●

Emergency unblinding

Built in for blinded designs, when participant safety requires it.

For the randomization specification

What to write down before the list is generated

Allocation ratio and arms

The reduced ratio, the arm names and the stratification factors with their levels.

Block sizes and how they are chosen

Fixed or mixed sizes and the selection probabilities, kept apart from the site-facing protocol.

Target per stratum

The expected number per stratum and the allowance for overrun, so the list is long enough.

Who generates and holds the list

A person or system independent of enrolment, with a documented procedure and seed.

Concealment and unblinding

How allocation is revealed only at enrolment, and the emergency unblinding route.

Handling of incomplete blocks

What is accepted at the end of enrolment, and the effect on balance.

FAQ

Questions teams ask before they switch

Something not covered here? Ask us directly.

How do I choose the block size for a randomization?

It must be a multiple of the sum of the reduced allocation ratio. Within that, use larger and mixed sizes when assignments are visible to sites (open-label), and tighter small blocks when the trial is blinded with central allocation. For 1:1, a mix of 4, 6 and 8 is a common compromise.

What block sizes are valid for 2:1 allocation?

Multiples of 3: 3, 6, 9, 12 and so on. A block of 6 has four participants in the larger arm and two in the smaller. A ratio written 4:2 reduces to 2:1 and has the same valid sizes.

Why not use a block size of 2?

Because every second assignment is then certain. For 1:1 allocation a site that sees assignments can guess 75% of them, and every block ends with a perfectly predictable slot. Use at least 4 unless there is a strong reason.

Does mixing block sizes remove the predictability?

It reduces it, as long as the sizes and the selection are not known to sites. The tool shows an average that assumes the observer knows the size in use, so a properly concealed mix is better than the figure shown. It does not remove the last-slot certainty within a block if the block boundary can be inferred.

How many blocks do I need?

Divide the target per stratum by the block size, rounded up; for mixed sizes use the mean size for the expected number. Generate at least the target plus the largest block size minus one rows per stratum so the list does not run out mid-block, and more if a stratum may overrun.

Is block randomization suitable with many strata?

It becomes weak. Each stratum has its own blocks, so with many strata and a small trial most strata end on an incomplete block and the groups drift apart. Reduce the number of strata, use smaller blocks, or discuss minimization with a statistician.

Can I use the demo list in my trial?

No. It is a seeded demonstration generated in your browser, reproducible by anyone with the seed, and it is not concealed or validated. A real randomization list is produced and held by a system or person independent of enrolment.

Is anything stored or sent?

No. Everything runs in your browser and nothing is saved or transmitted. It is a planning aid and not validated software.

Choose the block size, then set it up for real

Build the eCRFs, visit schedule and randomization in the free sandbox with nearly every feature. No credit card, pay only at go-live.

Set up randomization free