UI Design7 minute read

Leveraging Fitts’ Law: User Interface Design Principles for E-commerce

Apply this midcentury mathematical law to e-commerce UI design and convert visitors into customers.


Toptalauthors are vetted experts in their fields and write on topics in which they have demonstrated experience. All of our content is peer reviewed and validated by Toptal experts in the same field.

Apply this midcentury mathematical law to e-commerce UI design and convert visitors into customers.


Toptalauthors are vetted experts in their fields and write on topics in which they have demonstrated experience. All of our content is peer reviewed and validated by Toptal experts in the same field.
Alexandre Brito
Verified Expert in Design

Alexandre is a UX/UI designer and strategist with more than a dozen years of experience designing standout e-commerce experiences. He has worked with such companies as Asics, Deutsche Bank, Intel, KLM, Pernod Ricard, Philips, Toyota, and Vodafone.

Read More

PREVIOUSLY AT

Backbase
Share

Small improvements to an e-commerce site’s purchasing flow can make a big impact when enticing visitors to become paying customers. By applying Fitts’ Law to an e-commerce site’s interface, designers can make it easier for users to find exactly what they’re looking for, add items to their carts, and ultimately make purchases.

Fitts’ Law says that the amount of time it takes for a person to move a pointer to a target is a function of the distance to the target divided by the size of the target. Essentially, it means that objects that are larger and closer are easier to interact with. The law was originally conceived in 1954 by psychologist Paul Fitts, who created mathematical models of human behavior and worked to quantify the abilities of the human nervous system.

Fitts’ Law quantifies the speed-accuracy trade-off: The more precise the execution of a task has to be, the longer it will take to complete. Translated for UI design, it means that the further away a target—such as an “Add to Cart” button—is from a user’s cursor or finger, the larger that target has to be. That way, the act of reaching the target does not require much precision, and can be executed quickly.

The importance of making a UI component larger may seem obvious, but Fitts’ Law is not about increasing size for visual impact. It’s about reducing the amount of time it takes a user to reach a component with their cursor or finger. Often, that means making a UI component larger, but it could also mean deploying other techniques that allow users to move through an e-commerce site more efficiently and ultimately make a purchase.

Breaking Down the Fitts’ Law Formula

The mathematical equation that Fitts wrote is t = a + b log2 (2 d/w) where:

  • t equals time.
  • a and b represent regression coefficients that are derived from observation of the tests.
  • d is the distance between the starting point and the target.
  • w is the width of the target.
  • log2 indicates that the formula is logarithmic, and log2 (2 d/w) yields the Index of Difficulty (ID), a measurement that quantifies how hard it is to acquire the target.

The Fitts' Law equation demonstrated on a graph, with the distance between the cursor and the target demonstrated on the X axis and the movement time being shown on the Y axis. The line on the graph is sloping upward.

The logarithmic equation indicates the relationship between target size or distance and reaction time: A small size or distance increase for small targets can make them easier to acquire, whereas a small increase in size or distance for larger targets won’t make them much easier to reach.

In light of the equation, e-commerce UI designers must take two things into account: the size of an interface target relative to other items on the site and the distance of that target from the cursor. Applying Fitts’ Law for e-commerce means making a target easy to spot and interact with so customers can complete their task quickly and move to the next step in the purchasing process.

Fitts’ Law and E-commerce UI Design: A Perfect Fit

Fitts’ Law also helped give rise to the concept of the prime pixel—the location of a user’s cursor at any given moment. The goal for e-commerce UI designers is to shorten the distance from the prime pixel to the target as much as possible. But since the prime pixel is variable (Who knows where exactly a user will place their cursor when they arrive at a page?), there are several techniques for controlling the fixed components of an e-commerce page in order to place them as close as possible to where a user’s prime pixel is likely to be.

Illustration of two computers side by side. On the left is a cursor pointing to a button. On the right, the button has a larger ghosted shape over it showing the the prime pixel area in which the cursor would reasonably be expected to land when a user arrives at the page.
When applying Fitts’ Law to e-commerce UI, designers must anticipate what users’ prime pixel will be when they arrive at the page, then place the desired target nearby. The overlaid green bar on the right indicates where users’ prime pixels would likely be.

Design for Efficient Product Discovery

On successful e-commerce sites, products are easy to find. One way to use Fitts’ Law to improve product discovery is to add search functionality to the hero section of the homepage. People tend to scan web pages in predictable patterns, and scanning behavior and cursor movements are closely correlated.

Placing a search bar in an area where you’d expect visitors to gaze—and therefore position their cursor to create their prime pixel—could dramatically reduce the distance they would need to move their cursor in order to enter a search query. In addition, implementing predictive search can help bring users to target listings more quickly.

Optimize E-commerce Menus

A critical feature of any successful e-commerce site is a menu that allows customers to explore efficiently and find the categories and products they’re shopping for. Apply Fitts’ Law by adopting an automatic drop-down menu that appears when a customer hovers over a content category. Avoid placing too many items in one list so users don’t have to move the cursor far to select an item. Additionally, employ good information architecture and product photos to provide users with larger target areas that shorten the distance their cursors need to travel to make selections.

Increase the Surface Area of Call-to-action Buttons

The obvious place to apply Fitts’ Law is to a CTA button that will trigger a purchase. Make the button large so that it stands out and is easy to click; acquiring a larger target requires less accuracy. Additionally, make the button obvious by including it above the fold, applying accessible contrast, and placing it far enough away from other components that users don’t click on the wrong element. T0 further boost users’ decision-making confidence, ensure that microcopy on the button is clear and instructive.

Also consider placing the CTA button along the edge of the screen to maximize the use of what are known as magic pixels, areas of the screen where a user can navigate quickly and imprecisely while still hitting the target.

Make Some Actions Harder Than Others

In most cases, e-commerce UI designers apply Fitts’ Law to speed up users’ interactions. However, in some cases they may want to slow them down. For instance, designers might implement small check boxes for product add-ons that are further away from the prime pixel (which in this case is likely an “Add to Cart” button). Doing so would force users to be more precise when selecting additional products, ensuring they don’t purchase unwanted items inadvertently.

Fitts’ Law for Mobile Devices

In applying Fitts’ Law to e-commerce UI design for mobile devices, designers must factor in some constraints.

Fingers Are the Cursors

On mobile devices, there are no cursors. Users rely on their fingers to engage with the interface. However, fingers are thicker and therefore less precise than cursors. Touch targets should be bigger for mobile applications than they are for websites. Consider a CTA button that spans the width of a screen, and increase its padding to make it more clickable.

Mobile Use Is Often One-handed

Much of the time, users hold their mobile devices in one hand and operate them with their thumbs. This generally restricts users to interacting with the bottom of the screen unless they use two hands to enable touching the top. In considering UI design for mobile e-commerce, designers should place their desired targets within the natural reaching range of the thumb.

Three mobile devices showing the typical areas that the human thumb can reach to navigate on a smartphone. The left one shows the area the left thumb can reach, the middle one shows the areas both thumbs can reach, and the far right one shows where the right thumb can reach. The area that is comfortable to reach is indicated in green; above it, in blue, is the area where a thumb would have to stretch to reach. Above that in black is the area that would be most difficult to access.
In using Fitts’ Law for mobile e-commerce UI, designers must consider how far a human thumb can typically reach. (Courtesy: Smashing Magazine)

Consider the Caveats

When applying Fitts’ Law, it’s worth considering two key questions: What is the primary goal that users want to accomplish when they land on this page? And: How can I make that goal easy for users to achieve?

Fitts’ Law isn’t a silver bullet; there will be instances when it makes sense to apply it and times when other concepts are more appropriate. In the case of e-commerce, it is also worth considering whether focusing on another aspect of the site—for instance, how well the content speaks to the audience—could yield better results.

There is also the danger that Fitts’ Law could be used as a dark pattern, as sometimes happens with ads that appear on search engine pages. Typically, these ads are presented at the top of the page as though they are search results themselves. This is an example of Fitts’ Law, as the distance between the ad and the component last interacted with are near one another. While there are many good use cases for displaying a company’s ad next to a relevant search result, this design decision is often hijacked by competitors that want to misdirect users.

Follow Fitts’ Law for E-commerce Success

Although Fitts’ Law was developed decades before the advent of the internet, it’s a valuable principle in digital product design. Today, designers can use Fitts’ Law to boost revenue by making it easier for e-commerce customers to navigate a site, find products, and make purchases.

Understanding the basics

  • What is Fitts' Law and why is it important?

    Fitts’ Law says that the amount of time it takes for a person to move a pointer to a target is a function of the distance to the target divided by the size of the target. Applying Fitts’ Law to e-commerce UI design can boost online sales by allowing your customers to move through your site faster.

  • What is Fitts' Law in design?

    Fitts’ Law in UI design for e-commerce sites enables designers to shorten the amount of time it takes a user to find what they’re looking for, add it to their cart, and check out.

  • How can Fitts' Law be used to predict performance?

    By applying Fitts’ Law to UI design for e-commerce sites, designers can shorten the amount of time it takes for a user to move through the site. Visitors who can move through a site more quickly have a higher chance of becoming paying customers.

Hire a Toptal expert on this topic.
Hire Now
Alexandre Brito

Alexandre Brito

Verified Expert in Design

Culemborg, Netherlands

Member since October 18, 2016

About the author

Alexandre is a UX/UI designer and strategist with more than a dozen years of experience designing standout e-commerce experiences. He has worked with such companies as Asics, Deutsche Bank, Intel, KLM, Pernod Ricard, Philips, Toyota, and Vodafone.

Read More
authors are vetted experts in their fields and write on topics in which they have demonstrated experience. All of our content is peer reviewed and validated by Toptal experts in the same field.

PREVIOUSLY AT

Backbase

World-class articles, delivered weekly.

Subscription implies consent to our privacy policy

World-class articles, delivered weekly.

Subscription implies consent to our privacy policy

Join the Toptal® community.