What Is a Heatmap? Definition, Types and Uses

A heatmap is a data visualization that uses color to represent values, turning numbers into an intuitive visual pattern where darker or more intense colors indicate higher values and lighter colors indicate lower ones. Instead of scanning rows of data in a spreadsheet, you see the overall picture at a glance. Heatmaps show up everywhere, from website analytics and stock market dashboards to genetic research and geographic crime mapping.

How Color Represents Data

The core idea behind every heatmap is simple: replace numbers with colors. A table of 500 data points is hard to interpret. The same data mapped onto a color gradient lets you instantly spot which values are high, which are low, and where clusters form. The more intense the color, the greater the value it represents.

Most heatmaps use one of two color approaches. A sequential color scale runs from light to dark in a single hue, like white to deep blue. Darker cells mean higher values, and most people grasp this intuitively without needing a legend. A diverging color scale uses two contrasting colors that spread outward from a neutral midpoint, like blue for low values and red for high values with white in the middle. Diverging scales reveal more fine-grained differences because each color gradient covers half the data range instead of the full range. The tradeoff is that readers need a color key to know which direction is “good” or “bad.”

The Two Main Data Formats

Under the hood, heatmaps pull from data organized in one of two ways. The first is a matrix format: rows represent one variable (say, days of the week), columns represent another (hours of the day), and each cell holds a value (like number of website visitors). This is the classic grid-style heatmap you see in analytics dashboards and scientific papers.

The second format is coordinate-based. Each data point has a location (latitude and longitude on a map, or X-Y coordinates on a page) and a value. The heatmap software applies a smoothing radius around each point, blending nearby points together to create a continuous surface of color. This is how geographic heatmaps and website heatmaps work. You’re not looking at a rigid grid but at a fluid overlay showing where activity concentrates.

Website Heatmaps

If you work in marketing, design, or run a website, heatmaps are probably the version you encounter most. They record how visitors interact with a page and visualize that behavior as color overlays. There are three main types, and each answers a different question.

  • Click maps show where users tap or click. They reveal whether people are actually hitting your buttons, links, and interactive elements, or clicking on things that aren’t clickable at all.
  • Scroll maps show how far down a page users get before leaving. If 70% of visitors never scroll past the halfway mark, any important content below that point is essentially invisible.
  • Move (hover) maps track cursor movement on desktop. Cursor position loosely correlates with where someone is looking, making these useful for understanding scanning and reading patterns on text-heavy pages. They’re best interpreted alongside click and scroll data, since cursor movement is a rough proxy for attention rather than a precise measure.

These tools can have a real impact on business results. In one documented case, an e-commerce company used heatmap analysis to identify and fix UX problems on their site, leading to a 186% increase in conversions, a 30% drop in cost per conversion, and an 80% improvement in bounce rate. The heatmaps didn’t change anything on their own. They made the problems visible so the team knew exactly what to fix.

Geographic and Spatial Heatmaps

Geographic heatmaps overlay data density onto real maps. You’ve likely seen these on weather apps, traffic dashboards, or news graphics showing COVID case concentrations. The underlying technique, called kernel density estimation, places a smoothing radius around each data point. Where many points cluster together, the colors intensify. Where points are sparse, the color fades.

The applications are broad. Urban planners use geographic heatmaps to identify crash-prone intersections or high-crime areas. Ecologists map animal colony distributions. Researchers have mapped everything from agricultural farms across Europe to penguin colonies in Antarctica to visitor movement patterns inside temples. Any phenomenon that occurs across physical space and varies in intensity is a candidate for this kind of visualization.

Heatmaps in Science and Biology

In biological research, heatmaps are a standard tool for visualizing gene expression data. A typical gene expression heatmap is a large matrix with genes on one axis and biological samples on the other. Each cell’s color indicates whether a gene is highly active or barely active in that sample. The conventional color scheme uses red for high expression and green for low expression, though many researchers now use other palettes for accessibility.

What makes these heatmaps especially powerful is clustering. An algorithm groups genes with similar expression patterns together and groups samples with similar profiles together, then rearranges the rows and columns so that related items sit next to each other. The result is a tree-like branching diagram (called a dendrogram) along the edges of the heatmap that shows how closely related different genes or samples are. This approach has been central to cancer research, where clustering gene expression data has helped identify disease subtypes that look identical under a microscope but behave very differently.

Financial Market Heatmaps

Stock market heatmaps give investors a snapshot of how an entire market or sector is performing. The most common format displays each stock as a rectangle, with the rectangle’s size proportional to the company’s market capitalization. Color indicates performance: green for gains, red for losses, with deeper shades showing larger moves.

At a glance, you can tell whether the market is broadly up or down, which sectors are driving movement, and which individual stocks are outliers. Most financial heatmap tools let you switch the metric that drives the display, toggling between market cap, price-to-earnings ratio, earnings per share, dividend yield, and other measures. Hovering over any rectangle shows the stock’s name, current price, and percentage change. It’s a way to monitor hundreds of stocks simultaneously without scrolling through a table.

When a Heatmap Is the Right Choice

Heatmaps work best when you have a large volume of data and want to communicate the overall pattern rather than individual precise values. They’re ideal for spotting clusters, outliers, and gradients. If your audience needs to compare exact numbers, a table or bar chart is usually better. But if the question is “where is the concentration?” or “what’s the overall shape of this data?”, a heatmap communicates that faster than almost any other format.

They also scale well. A table with 10 rows is easy to read, but a table with 10,000 rows is useless without filtering. A heatmap handles that same dataset naturally, because your eye processes color variation far faster than it processes columns of numbers. That scalability is why heatmaps have become a default visualization in fields ranging from genomics to web analytics to financial trading.