TapCub is live — analytics, insights and live chat, free on one platform
Glossary

Fitts's law: formula and worked button examples

Fitts's law predicts how long it takes to move to a target from its distance and width. The Shannon formula, two buttons worked through, WCAG target sizes and what click data cannot show.

Chen Yu Reviewed by Sophia Bennett Also called Fitts law Last updated Dec 3, 2026 Glossary

Quick answer

Fitts's law predicts the time to move to a target: it grows with distance and shrinks with target width, through the index of difficulty log₂(D ÷ W + 1). Big, near targets are faster to hit. It covers aimed movement only, not the time spent finding or choosing the target.

Formula: MT = a + b × log₂(D ÷ W + 1); effective width We = 4.133 × SD; throughput TP = IDe ÷ MT

What is Fitts's law?

Fitts's law (often written "Fitts law" or "Fitts' law") is a model of how long it takes to move to a target. Movement time rises with the distance to the target and falls as the target gets wider, and the two enter through a single ratio inside a logarithm. Paul Fitts published the original experiments in 1954, in which people moved a stylus back and forth between two plates of varying width and spacing.

In interface work the target is a button, a link, a menu item or an icon, and the movement is a mouse pointer, a trackpad swipe or a finger. The law describes an aimed movement to a target the person has already identified. It does not include the time spent finding the button or deciding whether to press it; that second part is closer to what Hick's law describes.

Fitts's law formula and index of difficulty

The version most used in human-computer interaction is the Shannon formulation, promoted by I. Scott MacKenzie:

MT = a + b × ID, where ID = log₂(D ÷ W + 1)

TermMeaningUnit
MTAverage movement timeseconds
IDIndex of difficulty of the movementbits
DDistance from the start point to the centre of the targetpixels, millimetres, any length
WWidth of the target measured along the direction of movementsame unit as D
a, bConstants fitted from measurements for one device and group of userss, s per bit

Because D and W form a ratio, the units cancel. Fitts's own 1954 formula was ID = log₂(2D ÷ W). MacKenzie's 1992 paper argues for the Shannon version: it can never turn negative, whereas the original does when the distance is less than half the width, and it fitted Fitts's data slightly better in his reanalysis. State which formula you used, because the same movement gets different ID values: at D = 600 and W = 40 the Shannon form gives 4.00 bits and the original gives 4.91.

Worked example: two buttons

A "Start free" button sits 600 px from where the pointer usually rests. Version A is 40 px wide along the line of movement; version B is 160 px wide. The constants a = 0.10 s and b = 0.20 s per bit are sample values chosen to make the arithmetic easy to follow.

Version AVersion B
Distance D600 px600 px
Width W40 px160 px
D ÷ W + 1164.75
Index of difficulty4.00 bits2.25 bits
Predicted movement time0.90 s0.55 s

Sample data, recomputed in Python. The wider button is predicted to be reached 0.35 s sooner. Note what the number covers: pointer travel only. If visitors do not see the button, or do not want what it offers, width changes nothing.

Size, distance and diminishing returns

Only the ratio D ÷ W matters to ID. Halving the distance of version A to 300 px gives log₂(8.5) = 3.09 bits, and so does keeping 600 px and doubling the width to 80 px. Doubling both distance and width leaves difficulty unchanged.

The logarithm also means each doubling of width buys less than a full bit, especially once targets are already large:

Width at D = 600 pxID (bits)Predicted timeTime saved by this doubling
20 px4.951.09 s—
40 px4.000.90 s0.19 s
80 px3.090.72 s0.18 s
160 px2.250.55 s0.17 s
320 px1.520.41 s0.15 s

Sample data with the same constants. Enlarging a tiny target also reduces misses, which the timing column does not show. Enlarging an already wide banner mostly takes space from other things.

Errors, effective width and throughput

People trade speed for accuracy, so two groups can show different times on the same buttons simply because one was more careful. The usual correction uses the spread of where people actually clicked. In MacKenzie's description, the effective width is We = 4.133 × SD, where SD is the standard deviation of the click end points along the movement axis. If end points around version A have SD = 9 px, We = 37.2 px and the effective ID at 600 px becomes 4.10 bits.

Throughput combines the two: TP = IDe ÷ MT. With an effective ID of 4.10 bits and a measured 0.90 s, throughput is about 4.6 bits per second. MacKenzie's 2018 handbook chapter reports that mouse throughput in studies following the ISO standard is typically about 4 to 5 bits per second; the same procedure was published in ISO 9241-9 and later renumbered ISO 9241-411. Use that range to sanity-check a study, not to grade a web page: it comes from controlled pointing tasks.

Fitts's law and WCAG target size

Accessibility guidance sets minimum sizes in CSS pixels. These are thresholds for conformance, not predictions from Fitts's law.

WCAG 2.2 criterionLevelMinimum target sizeMain exceptions
2.5.8 Target Size (Minimum)AA24 × 24 CSS pxEnough spacing, an equivalent control, inline text links, unmodified browser controls, essential presentation
2.5.5 Target Size (Enhanced)AAA44 × 44 CSS pxEquivalent control, inline, browser-controlled, essential

The spacing exception in 2.5.8 is easy to compute. Draw a 24 px diameter circle centred on each undersized target; the circles must not intersect another target or another undersized target's circle. Two 20 px icons with a 4 px gap have centres 24 px apart, so the circles touch without overlapping. Two 16 px icons with the same gap have centres 20 px apart, the circles overlap, and the pair does not qualify through spacing. Check the current W3C text before relying on a summary; this is not a conformance audit.

What Fitts's law changes in a design and where it stops

  • Make the clickable area match the visible one. A full-width row that only responds on its text has a small W, whatever it looks like. Padding that is clickable counts; margin that is not does not.
  • Measure W along the approach. A wide, short menu item approached from above is limited by its height. MacKenzie's 1992 discussion suggests that taking the smaller of width and height is a reasonable stand-in for two-dimensional targets, while noting that the idea still needed testing.
  • Put follow-up actions near the previous one. A confirm button placed far from the field the user just completed raises D for every submission.
  • Screen edges help only a pointer that stops there. A target against the physical edge of a display cannot be overshot in that direction. A page element inside a browser window, or anything on a touch screen, gets no such effect.
  • Do not make destructive actions easy to hit by accident. Large and adjacent is fast for the wrong button too; separate "Delete" from "Save".

The model weakens when movements are not aimed (scrolling, free gestures), when the finger covers a very small target, when the target moves or loads late, and when most of the time goes on reading. On slow pages, a layout shift can move a button after the user has started towards it, which no amount of width fixes.

Fitts's law vs click map data

A click map records where clicks landed on real pages. Fitts's law predicts how long aimed movements take. They answer different questions.

Fitts's lawClick map
InputDistance and width of a targetRecorded clicks on a page
OutputPredicted movement time, index of difficultyDensity of clicks by position and element
Needs live trafficNo; works on a drawingYes
Tells you about timeYes, for pointing onlyNo
Tells you about intentNoPartly: what people tried to click
Typical useComparing two layouts before buildingChecking behaviour after release

Use the law while the design is still a sketch and the click map once people are using it. If a target predicted to be easy collects few clicks, the problem is probably visibility or relevance, not pointing.

Check small targets in TapCub

Suppose version A above is live and you suspect it is too small on desktop and cramped on phones. TapCub does not compute index of difficulty or measure pointer travel; it shows what happened around the control.

  1. Open the page's heatmap. In All-platform analytics › Behavior › Heatmaps, pick the page, then a device. Heatmaps need the Pro plan or higher with autocapture on. The website heatmap article explains what click density can and cannot show.
  2. Compare controls. The Elements tab lists the most clicked controls with their share, visitors and average position. If a neighbouring link takes far more clicks than expected on mobile only, check the spacing between the two.
  3. Look for repeated clicks. The Rage clicks tab shows spots clicked repeatedly. A rage click can mean a control that responds slowly or not at all, so test it before blaming its size.
  4. Know the blind spot. Autocapture records clicks on clickable elements only. A near miss that lands on empty space next to a small button does not appear on the heatmap. If you need to see those attempts, turn on session replay, which is off by default, for a sample of sessions.
  5. Compare completion after the change. Count the page view and the button event in All-platform analytics › Behavior › Funnel for each device type, before and after, and note the release in Configuration › Annotations. TapCub does not split traffic between two versions.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Chen Yu

Technical Engineer

Focuses on tracking code, SDKs, and API integrations, with practical guidance on implementation checks and troubleshooting.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What does Fitts's law state?

The time needed to move to a target increases with the distance to it and decreases with its width. In the Shannon formulation, movement time equals a constant plus a slope times log base 2 of distance divided by width plus one. The constants depend on the device and the users.

What is an example of Fitts's law in UX?

A 40 px wide button 600 px away has an index of difficulty of 4.00 bits; widening it to 160 px lowers that to 2.25 bits. With sample constants, predicted pointing time falls from 0.90 s to 0.55 s. Reading and deciding time are not included.

Does Fitts's law apply to touch screens?

The general pattern of larger and nearer targets being easier carries over, and MacKenzie reports touch throughput from controlled studies. Very small targets under a finger fit less well, and screen-edge effects of a mouse pointer do not apply. Test on real devices.

What is the minimum target size in WCAG 2.2?

Success criterion 2.5.8, at level AA, asks for pointer targets of at least 24 by 24 CSS pixels, with exceptions including sufficient spacing and inline links. Criterion 2.5.5, at level AAA, asks for 44 by 44 CSS pixels with its own exceptions.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics