In many phone apps, the main action button is as wide as the screen and sits at the bottom, right where your thumb is. Buttons you rarely need are small and placed in a corner. There's a calculation behind that placement.
It comes from Fitts's Law: the time to reach a target, such as a button, depends on two things: the distance to the target and the size of the target. A close, big target is reached fast. A far, small one is slow to reach and easy to miss. Picture throwing paper into a bin. A big bin next to your desk: the paper goes in without you thinking about it. A small cup across the room: you aim for a long time and still often miss. Buttons on a screen are the same: a big, close button is like the bin, a small, far one is like the cup.
Fitts's formula
Paul Fitts (1954) had people tap back and forth between two targets while he changed their distance and width. The time rose with one number, the index of difficulty (ID), which is how hard the move is. The formula used today in HCI (the study of how people use computers) is a version from Scott MacKenzie (1992), called the Shannon form:
MT = a + b · ID, where ID = log₂(D / W + 1)
- MT (movement time): the time to move onto the target.
- D (distance): from the starting point to the target's centre.
- W (width): the target's size along the direction of movement. If the hand moves straight down, W is the button's height, not its width (MacKenzie and Buxton, 1992, for two-dimensional targets).
- a and b: numbers measured per person and per device (mouse, touchpad, finger). So what we compare is the ID. The seconds are known only after a and b are measured.
The ID is counted in bits, like the decision part of Hick's Law in the previous lesson. Doubling D adds about 1 bit to the ID. Doubling W removes about 1 bit. So distance and size matter equally.
Calculating it on Mrs. Sri's page
Mrs. Sri wants to move the booking button from under the night buttons to the top-right corner of the header, like big hotel sites do. On a 1280px laptop, how many times harder does the move from the "2 nights" button to the booking button become? Guess first, then check the table.
The guest has just pressed "2 nights". From that button's centre, we measured two things: the distance to the booking button's centre, and the booking button's size along the move. We measured them in Chrome, Safari and Firefox, and the numbers were the same in all three:
| Screen | Booking button | D | W along the move | ID |
|---|---|---|---|---|
| Phone 375px | in the card, 293 × 48px | 94px | 48px (the move goes straight down) | log₂(94 / 48 + 1) = 1.56 bits |
| Phone 375px | header corner, 65 × 32px | 399.6px | 33.9px | 3.68 bits |
| Laptop 1280px | in the card, 350 × 48px | 94px | 48px | 1.56 bits |
| Laptop 1280px | header corner, 65 × 32px | 1,060.9px | 69.7px | 4.02 bits |
In the header corner the move is diagonal, so W is the length of the button that the line of the move crosses: 33.9px on the phone and 69.7px on the laptop. On the laptop the ID rises from 1.56 to 4.02 bits. So the answer to the guess: about 2.6 times harder. The distance to the button in the card doesn't change with screen width either: on the phone and the laptop alike, that button stays 94px under the night buttons.
This is the CSS for the button in the card. display: block makes the button take a line of its own:
.book {
display: block;
width: 100%; /* as wide as the card: 293px on the phone, 350px on the laptop */
min-height: 48px; /* W for a move from top to bottom */
padding: 12px 16px;
}
width: 100%makes the button as wide as the card, so it is easy to reach from anywhere in the card. But for the straight move down from "2 nights", it's the height that counts.min-height: 48px(a minimum height of 48px) keeps W at 48px even with short text. That height also meets the touch-target limits in the next section.
Touch targets on phones
On a phone the "cursor" is a fingertip. A finger covers several millimetres, and you can't see what is under it. Steven Hoober (2017) observed that for 95% of taps to land, a target needs about 7 mm in the middle of the screen, and about 12 mm at the edges and corners. The tip of a mouse cursor is only one pixel. That is why phone apps need bigger buttons than desktop apps. Apple asks for at least 44 × 44 pt, Material Design (Google's design guidelines) 48 × 48 dp, and WCAG 2.2 (criterion 2.5.8) at least 24 × 24 px. pt and dp are Apple's and Android's units of size, about the same as px in a phone's browser. The 32px header button meets WCAG's minimum, but is below Apple's and Material's minimum.
A thumb's reach on a phone
Hoober (2013) watched 1,333 people using phones: 49% used one hand, tapping with the thumb. With that grip, the easiest area to reach runs from the middle to the lower middle of the screen. The top corners are the hardest, because people have to shift their grip. Hoober's later research (2017) added two things. First, people prefer to touch, and touch most accurately, in the middle of the screen. Second, the popular "thumb zone" map (a map of the thumb's reach) draws the bottom of the screen as easy and the top as impossible. That map oversimplifies, because the back button in the top-left corner is still used a lot.
The practical lesson for Mrs. Sri's page: the main action in the middle or lower middle, as wide as the card, never in a top corner.
📌 Desktop screen edges and corners
Bruce Tognazzini (1999) showed an advantage of screen edges on the desktop, which this lesson calls the edge bonus: the cursor stops at the edge of the screen. So a target touching the edge acts as if its W were endless: a cursor moved too far still stops on that target. The macOS menu bar (the row of menus on the top edge of a Mac screen) is an example. You can move the mouse fast upward, and the cursor will not go past the menu bar. This advantage only holds for targets that truly touch the screen edge. A web page's header doesn't count, because the browser's tabs and address bar sit above it. On a touch screen, the advantage doesn't exist at all.
⚠️ Buttons that are hard to hit
- Widening a button when the move goes down. W is measured along the move. For a vertical move, the button's height decides.
- A small main action in a corner. On Mrs. Sri's page its ID is 2.6 times higher on the laptop, and on the phone the top corner is also the hardest spot for a thumb.
- Touch targets under 44pt or 48dp. Meeting WCAG's 24px minimum doesn't make a target comfortable for a finger.
- A dangerous button right next to a frequently pressed one. "Delete booking" right beside "View booking" leads to wrong taps. Put space between them, and protect the dangerous one with a confirmation.
- Assuming a web page's corner gets the edge bonus. Only a real screen edge stops the cursor.
TL;DR: Fitts's Law: the time to move onto a target (MT) depends on its distance and size, MT = a + b · log₂(D / W + 1) (Fitts 1954, Shannon form MacKenzie 1992), with a and b measured per device and per person. D is the distance to the target's centre, and W the target's size along the move. log₂(D / W + 1) is called the ID (index of difficulty, how hard the move is), in bits. On Mrs. Sri's page, from the "2 nights" button to the booking button in the card: D 94px, W 48px, ID 1.56 bits on phone and laptop. In the laptop's header corner: D 1,060.9px, W 69.7px, ID 4.02 bits, 2.6 times harder. For a downward move, the button's height decides. Phones need bigger targets than desktops (fingers need 7 to 12 mm, Hoober 2017; the minimum for Apple is 44pt, Google's Material Design 48dp, WCAG 24px). On a phone held in one hand, the thumb reaches the middle to lower middle of the screen most easily, the top corners least. Desktop screen edges stop the cursor (Tognazzini 1999), but a web page header and touch screens don't get that edge bonus.
⚡ Distance and size
Guess first: by Fitts's Law, the time to reach a target, such as a button, depends on two things. Which?
Distance and size. A close, big target is reached fast, a far, small one is slow and easy to miss.
Meaning: ID = log₂(D / W + 1). The ID (index of difficulty) is how hard the move is, counted in bits. D is the distance to the target's centre, W the target's size along the move. Doubling the distance adds about 1 bit, doubling the size removes about 1 bit.
⚡ The book button stays in the card
Write:
.book {
display: block;
width: 100%; /* as wide as the card: 293px on the phone, 350px on the laptop */
min-height: 48px; /* W for a move from top to bottom */
padding: 12px 16px;
}
Meaning: .book is the booking button in the room card. The guest has just pressed "2 nights", and from that button the booking button is only 94px down: an ID of 1.56 bits. Moved to the header's corner on a laptop, it becomes 4.02 bits, 2.6 times harder. For a downward move, the button's height decides, and min-height: 48px keeps that height.
⚡ A finger is bigger than a cursor
Meaning: Touch targets (the areas you can tap) on a phone are at least 44pt (Apple), 48dp (Google's Material Design), or 24px (WCAG 2.2). pt and dp are about the same as px in a phone's browser. With a phone held in one hand, the thumb reaches the middle to lower middle of the screen most easily, and the top corners least. So never put the main action in a top corner.