Back to library

Takeaways

  1. Larger targets are easier to hit
  2. Distance to targets affects interaction time
  3. Screen edges and corners are effectively infinite in size
  4. Mobile interfaces need larger touch targets

Fitts's Law

The time required to move to a target depends on the distance to and size of the target.

Overview

Fitts's Law is a predictive model of human movement that states that the time required to rapidly move to a target area is a function of the distance to the target and the size of the target.

This principle is fundamental in user interface design, particularly for interactive elements like buttons and controls.

Mathematical Formula

T = a + b log₂(1 + D/W)

Where:

  • T is the time to move to a target
  • a and b are empirical constants
  • D is the distance to the target
  • W is the width (size) of the target

Design Implications

  1. Important or frequently used controls should be larger
  2. Edge and corner positions are easier to target (infinite width)
  3. Group related controls to minimize mouse movement
  4. Consider touch targets for mobile (minimum 44×44 pixels)

Examples by Platform

PlatformRecommended Target SizeCommon Applications
Desktop24-32px minimumButtons, menu items, links
Mobile44-48px minimumNav buttons, form controls
Touch Kiosks60-80px minimumLarge buttons, simplified UI
Accessibility44px minimumLarger targets for motor impairments

Code Example

// Calculate target acquisition time based on Fitts's Law
function calculateAcquisitionTime(distance, targetSize) {
  const a = 0.2; // Empirical constant
  const b = 0.1; // Empirical constant
  return a + b * Math.log2(1 + distance / targetSize);
}

Related Notes