Target Size (Minimum)
Targets need to be at least 24 by 24 CSS pixels, or spaced so that a 24px circle centred on each does not overlap its neighbours. New in WCAG 2.2. Inline links in a sentence are exempt.
- Principle
- Operable
- Guideline
- 2.5
- Level
- AA
- In WCAG since
- 2.2
- Number
- 2.5.8
Broken, then fixed
The same interface twice: first with the mistake, then with the smallest change that fixes it.
Sixteen-pixel icons, packed edge to edge.
Delete sits four pixels from retweet. Everyone mis-taps these; for someone with a tremor it is most of their taps, and one of the three is destructive.
The same icons in 24px targets.
The icon can stay small — it is the target that has to grow, via padding. Spacing counts too: leave 24px of clearance between centres and the criterion is met without changing the visual density much.
What changed in the code
The fix as a diff: removed lines are marked with a minus, added lines with a plus.
.icon-button {
removed: padding: 0;
added: min-width: 24px;
added: min-height: 24px;
added: padding: 4px;
}
24px is the floor, not the goal. Platform guidance asks for 44–48px, which is what this page uses for its own controls.
Watch it happen
This demo plays the failure out over time. It is silent and captioned, and you can pause or scrub at any point.
18px targets · 45px fingertip
How to test
Check your own interface against 2.5.8, one step at a time.
- List every target on the page that a pointer can activate: buttons, links outside sentences, icons, checkboxes, the close button of a dialog.
- Open your browser’s developer tools (Chrome, Edge or Firefox) and inspect each small target. Read its width and height in CSS pixels from the box model.
- Check that each target is at least 24 by 24 CSS pixels.
- For each smaller one, draw an imaginary circle 24 pixels across centred on it. Check that the circle does not touch another target, or the circle of another small target. A row of 20-pixel icons needs a gap of at least 4 pixels between them.
- For any target that still fails, check the exceptions: a link inside a sentence, a control the browser draws and the page has not restyled, another control on the page that does the same thing and is big enough, or a size that is essential, such as pins on a map.
Common questions
Do links inside a paragraph have to be 24 by 24 pixels?
No. Targets inside a sentence, or held to the line height of the text around them, are exempt. Making them taller would change how the text reads.
Does a 16-pixel icon button fail 2.5.8?
Only when it is too close to another target. It passes if a circle 24 pixels across, centred on it, touches no other target and no other small target’s circle.
Is 24 pixels the size to design for?
No, it is the minimum. 2.5.5 Target Size (Enhanced), at Level AAA, asks for 44 by 44 CSS pixels, and that is the better aim for the controls people use most.
Try it yourself
A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.
Try it: size the targets
How to use this lab
- Goal. Size three icon targets so each can be tapped without hitting its neighbour.
- The controls. The Target size slider sets each target’s width and height, from 8 by 8px to 44 by 44px. The Space between targets slider sets the gap, from touching to 24px. Under 24 by 24px, each target is drawn with a 24px circle round its centre.
- Try this. The lab starts at 16 by 16px, 8px apart, with the circles just touching. Drag Space between targets down to 7px, then drag Target size up to 24 by 24px.
- What it means. 2.5.8 passes when each target is at least 24 by 24px, or when smaller targets’ 24px circles don’t overlap. It fails when they overlap, because people with tremors or large fingers hit the wrong target. The verdict line under the lab says which.
- 16 by 16pxUnder 24 by 24
- Centres 24px apart24px circles clear each other
2.5.8 passes
Also in guideline 2.5
Criteria in the same guideline often fail together.
- 2.5.1, OperableLevel A
Pointer Gestures
Fails when: Zooming is gesture-only.
- 2.5.2, OperableLevel A
Pointer Cancellation
Fails when: Deleting fires the moment the pointer goes down.
- 2.5.3, OperableLevel A
Label in Name
Fails when: The visible text and the accessible name disagree.
- 2.5.4, OperableLevel A
Motion Actuation
Fails when: Shake to undo, and no other way.
- 2.5.7, OperableNew in 2.2Level AA
Dragging Movements
Fails when: Reordering works by drag and drop only.