# Tap targets: 24px is the rule, 44px is the advice

> The close button on the modal is a 14px glyph in a 16px box, and it passes every visual review because it looks exactly as designed. **A finger is not a cursor**, and since WCAG 2.2 there is a number for how much smaller than one a target is allowed to be.

Published 2026-12-01. Canonical: https://loupekit.com/blog/tap-targets-too-small/

Two success criteria cover this, at two different levels, and they are quoted as one so often that the difference has to be stated first:

- **2.5.8 Target Size (Minimum) - AA**: At least 24 by 24 CSS pixels, **or** enough clear space around it. New in WCAG 2.2, and at AA - the level conformance claims are usually made at.
- **2.5.5 Target Size (Enhanced) - AAA**: At least 44 by 44 CSS pixels, with no spacing exception. In WCAG since 2.1, and at AAA, which makes it a target to aim for rather than a requirement for almost everybody.
- **Platform guidance**: Apple's Human Interface Guidelines ask for 44 by 44 points and Material Design for 48 by 48 dp. Neither is WCAG; both sit close to the AAA figure.

The unit is the CSS pixel, so the device's pixel density does not help and neither does a user zooming in. A 16px button is a 16px button on every screen.

## What counts as the target

The target is the area that responds to the pointer - the element's box, padding included - not the icon drawn inside it. A 16px glyph in a button with 4px of padding all round is a 24px target and passes. **The icon's size is irrelevant; the hit box is the whole measurement.**

*a 16px glyph on a 24px target*

```css
.close {
  display: inline-grid;
  place-items: center;
  min-inline-size: 24px;
  min-block-size: 24px;
}

.close svg {
  inline-size: 16px;
  block-size: 16px;
}
```

That is usually the whole fix: the drawing stays the size the design asked for and the box around it grows. It is also why the bug is invisible in review. A designer checking the mock against the page is checking the glyph, and the glyph is right.

> A hit area grown with an absolutely positioned `::before` is real to a finger - pressing it activates the element - but it is not part of the element's own bounding box. Anything that measures with `getBoundingClientRect()` will not see it, so controls enlarged that way are worth checking by hand.

## The spacing exception, as geometry

An undersized target still passes 2.5.8 if a circle 24 CSS pixels across, centred on its bounding box, does not intersect another target or the circle of another undersized target. Two consequences fall straight out of that:

- **Two small targets pass if their centres are far enough apart** for their circles not to overlap - 24px between centres is the boundary, so leave a little more than that.
- **A small target next to a full-size one** needs its centre at least 12px from that target's edge, because the circle may not touch the other target at all.

*a row of 16px icons, at two gaps*

```text
gap 4px   centres 20px apart   circles overlap    fails
gap 10px  centres 26px apart   circles separate   passes
```

> The exception rewards space, not size. A 12px target alone in open space passes AA; a 22px one pressed against its neighbour fails. Crowding is what the criterion is really about.

## The other exceptions

- **Inline**: A link inside a sentence, or a target whose size is set by the line height of the text around it. Enlarging it would mean changing the text.
- **Equivalent**: Another control on the same page does the same thing and meets the size. The tiny icon can stay if a full-size button beside it does the same job.
- **User agent control**: The browser decides the size and the author has not changed it. An unstyled native checkbox is the usual case; the moment it is restyled, its size is the author's again.
- **Essential**: A particular presentation is essential to the information or legally required - points on a map, for instance, are where they are.

Inline is the one that gets stretched. A footer column of stacked links with a tight line height is not a sentence, so the exception does not cover it, and it is one of the commonest failures on an otherwise careful page.

## Where the offenders usually are

- The close button on modals, cookie banners and toasts.
- Carousel and pagination dots - small by design and crowded by design, which is the one combination the exception cannot rescue.
- Icon rows: share buttons, an editor toolbar, the actions at the end of a table row.
- Footer and sidebar links stacked one per line.
- The clear button inside a search field and the show-password toggle.
- Controls that are the right size on a desktop and shrink at a breakpoint, because the mobile stylesheet tightened the padding.

The last one is why the measurement has to be taken **at a phone width**, in a real viewport rather than a scaled-down screenshot. A layout check at 1440px passes controls that fail on the device the criterion was written for.

## Finding them

The size half of the check fits in the console:

*every control under 24px - before any exception is applied*

```js
const controls = document.querySelectorAll(
  'a[href], button, input, select, textarea, summary, [role="button"]'
);
for (const el of controls) {
  const { width, height } = el.getBoundingClientRect();
  if (width && height && (width < 24 || height < 24)) {
    console.log(Math.round(width), Math.round(height), el);
  }
}
```

It will list too much. Inline links in running text are exempt and appear anyway, and a small target with plenty of space around it passes and appears anyway. **The spacing half is the hard part**, because it means comparing every undersized target with every target near it.

LoupeKit's Tap targets does both halves. It measures every button, link, field and control on the page, applies the spacing exception, counts inline links rather than failing them, and lists what is left smallest and most crowded first, with the 44px figure beside each as guidance rather than as a failure. It tests the exception with a square instead of a circle, so it errs towards reporting slightly more than a strict reading would. Viewport puts the same page in real iframes at phone widths, which is where it is worth running.

> Fix in that order. Under 24 and crowded fails AA; under 24 with room around it passes; under 44 is the better target once nothing fails.
