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.
Free sandbox · No credit card · 21 CFR Part 11 compliant
| Block size | Per arm | Right guess | Certain per block | |
|---|---|---|---|---|
| Block of 2 | 1:1 | 75.0% | 1.00 | |
| Block of 4 | 2:2 | 70.8% | 1.33 | |
| Block of 6 | 3:3 | 68.3% | 1.50 | |
| Block of 8 | 4:4 | 66.6% | 1.60 |
Choosing a block size in brief
Free tool
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 | Per arm | Right guess | Certain / block | Max drift |
|---|---|---|---|---|
| 2 | 1:1 | 75.0% | 1.00 | 0.50 |
| 4 | 2:2 | 70.8% | 1.33 | 1.00 |
| 6 | 3:3 | 68.3% | 1.50 | 1.50 |
| 8 | 4:4 | 66.6% | 1.60 | 2.00 |
| 10 | 5:5 | 65.3% | 1.67 | 2.50 |
| 12 | 6:6 | 64.3% | 1.71 | 3.00 |
| 14 | 7:7 | 63.5% | 1.75 | 3.50 |
| 16 | 8:8 | 62.8% | 1.78 | 4.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.
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
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
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
For an observer who knows the block size and the assignments so far. “Mix” is the tool’s recommended mix, averaged over its sizes.
| Ratio | Smallest valid block and next sizes | Right-guess rate at each size | Recommended mix, average rate |
|---|---|---|---|
| 1:1 | 2, 4, 6, 8 | 75.0%, 70.8%, 68.3%, 66.6% | 4, 6, 8: 68.6% |
| 2:1 | 3, 6, 9, 12 | 77.8%, 74.4%, 72.8%, 71.7% | 6, 9, 12: 73.0% |
| 3:2:1 | 6, 12, 18, 24 | 62.8%, 58.7%, 56.8%, 55.6% | 6, 12, 18: 59.4% |
| 1:1:1 | 3, 6, 9, 12 | 61.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.
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.
In practice
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
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.
Baseline severity: moderate
Block 7 of 12
Baseline severity: severe
Block 4 of 12
Baseline severity: moderate
Block 6 of 12
Subject 01-0048 randomized
BlindedRandomization no.
R-0166
Treatment arm
●●●●●●
Emergency unblinding
Built in for blinded designs, when participant safety requires it.
For the randomization specification
The reduced ratio, the arm names and the stratification factors with their levels.
Fixed or mixed sizes and the selection probabilities, kept apart from the site-facing protocol.
The expected number per stratum and the allowance for overrun, so the list is long enough.
A person or system independent of enrolment, with a documented procedure and seed.
How allocation is revealed only at enrolment, and the emergency unblinding route.
What is accepted at the end of enrolment, and the effect on balance.
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.
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.
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.
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.
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.
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.
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.
No. Everything runs in your browser and nothing is saved or transmitted. It is a planning aid and not validated software.
Keep exploring
Randomization list generator
A reproducible planning list.
Minimization randomization calculator
The alternative when strata multiply.
Block randomization software
How block randomization runs in a platform.
Clinical trial randomization software
Allocation with an audit trail.
EDC with randomization
Randomization in the same system as the eCRFs.
How to blind a clinical trial
Concealment and masking.
Randomization
Glossary definition.
Build the eCRFs, visit schedule and randomization in the free sandbox with nearly every feature. No credit card, pay only at go-live.