Skip to the explanation
In your pocket
Choose language, current: English

How does a touch­screen work?

You tap, swipe and zoom on a little sheet of glass hundreds of times a day. But glass can't feel anything. So how does your phone know exactly where your finger is? And why doesn't it work with gloves on, but it does with a hot dog?

The short answer

Under the glass are see-through strips in rows and columns. Where they cross, your phone keeps sending a tiny electric signal from one to the other. Your finger conducts electricity and pulls a little of the signal away at that spot. A chip measures all the crossings many times a second, and that's how it sees where you are.

About 5 minutes to read, plus two things to try yourself.

1. A grid you can't see

A touchscreen is a screen you can touch, just like the name says. On the screen you see pictures, but just under the glass there's another layer you can't see. Inside it are very thin strips arranged in rows, running from left to right. On top of those are strips in columns, running from top to bottom. Together they form a grid, like the squares on graph paper.

The strips are made of a material that conducts electricity: electricity can flow through it, just like through a copper wire. Yet they're see-through. The material is called ITO, and the layers are so thin that you look right through them at the picture.

Between the rows and the columns is a paper-thin layer that does not let electricity through. A material like that is called an insulator, like the plastic around a power cord. So the rows and columns do cross each other, but they don't touch. A phone has about fifteen columns side by side and thirty rows from top to bottom. That makes hundreds of crossings, each a few millimeters apart.

2. Every crossing gets a signal

A chip in your phone keeps sending a very small pulse of current through a row. That current can't get to the columns, because the insulator is in between. Yet something still arrives at each column. How is that possible?

You've probably felt charge before: a little shock from a doorknob, or your hair standing on end from a balloon. Around anything with electric charge there's an electric field. That's an invisible influence that can push and pull other charge, a bit like the magnetic field a magnet has around it.

The field of the row reaches across the insulator to the column. Because of that, some charge in the column also shifts back and forth for a moment, without the two touching. The chip measures how much arrives at each column. When nobody touches the screen, that amount stays the same at every crossing.

3. Your finger steals a little

The field doesn't stay neatly between the row and the column. Part of it bulges upward, through the glass. When you put your finger on the glass, your finger ends up in that field.

Your body conducts electricity, because there's a lot of salty water in it. So your finger pulls part of the field toward itself, away from the column. That means less than usual arrives at the crossings under your finger. It's not a big difference, often a tenth to a fifth, but the chip notices.

That's why an ordinary glove doesn't work. Fabric barely conducts electricity, and the glove keeps your finger a little way from the glass. Your fingernail doesn't work either, and neither does a plastic pen. A hot dog does: it's salty and wet inside, just like you. Special touchscreen gloves have tiny metal threads in the fingertips.

So you don't need to press, either. The grid can't feel pressure. It only notices whether something that conducts electricity is right above the glass.

Experiment: what works and what doesn't? Do this together with an adult. Open an app you can draw in. Try to use the screen with your fingernail, your knuckle, a glove, the cap of a pen and a hot dog or a banana with the peel on. First write down your predictions, then test them. Don't use anything sharp or wet, don't press hard, and wipe the screen clean afterward with a soft, dry cloth.

Try it yourself: drag across the screen, or use the arrow keys. See which crossings lose signal and where the phone thinks you are. Then put on a glove.

A phone screen with the invisible grid of strips Under the glass are ten purple rows and six columns. Where something that conducts electricity is on the screen, the crossings underneath turn purple: less signal arrives there. The bigger the purple dot, the more signal is gone. A yellow dot shows where the phone thinks your finger is. 1 2 3 4 5 6 1 2 3 4 5 6 7 8 9 10

What are you putting on the screen?

Weakest crossing
100%
Phone sees
nothing

“Weakest crossing” shows how much signal still arrives at the crossing that’s missing the most. Column 3.4 means: a little past column 3, on the way to column 4. In real life there are many more strips, about fifteen side by side.

With JavaScript on, you can slide a finger, a glove, a pen or a hot dog over the screen yourself. Then you'll see that only the finger and the hot dog pull signal away.

4. Scanning row by row

The chip doesn't measure everything at once. First it sends its pulse of current through row 1 and measures how much arrives at all the columns at the same time. Then row 2, then row 3, until it reaches the bottom. That's called scanning. A whole round takes only a few thousandths of a second, and a phone often does it 120 to 240 times a second.

After each round, the chip has a little map of all the crossings. Where the signal is weaker, there's a finger. Because it measures every crossing separately, it can also see two or more fingers at the same time. That's why you can pinch with two fingers to zoom.

Your fingertip is wider than the space between two strips. So it's always over a few crossings at once, more over some than others. By comparing them, the chip works out exactly where your finger is, even when it's between two strips. That's how your phone knows where you tap to within about a millimeter.

Try it yourself: measure the screen row by row and see where signal is missing. Then choose two fingers. Does the chip find both of them?

The grid of a touchscreen up close, with eight columns and six rows Dashed ovals show where fingers are. The chip measures the rows one by one. For each row it measures, the crossings appear: a big purple dot means signal is missing there. After the last row, the chip puts a yellow dot at every spot where it finds a finger. 1 2 3 4 5 6 7 8 column row 1 2 3 4 5 6
Rows measured
0 of 6

This is in slow motion. A real phone has many more rows and columns, and does a whole round in a few thousandths of a second.

With JavaScript on, you can have the chip measure the screen row by row yourself, with one or two fingers. The picture shows the result of a whole round with two fingers.

Your finger steals a little of the electric field. Your phone looks for the crossing where it's missing.

Did you know?

Your screen feels more often than it refreshes

Many phones measure your finger more often than they show a new picture. A gaming phone sometimes measures more than 500 times a second. That way your game reacts just a little faster to your thumb.

You used to have to press

Older screens, for example in old car GPS units and some vending machines, work by pressure. You push two layers together. On those, a glove does work, but you can't pinch to zoom. Since the first iPhone in 2007, almost all smartphones have had a screen like the one on this page.

Want to know more?

Every crossing is a capacitor

Two conductors close together, with an insulator in between, form a capacitor: a part that can hold a little electric charge. How much charge it holds depends on the voltage: how hard the charge is pushed, measured in volts. How much charge fits in per volt is called the capacitance. You measure it in farads.

A crossing in a touchscreen has only about 1 to 2 picofarads. Pico means a trillionth: 1 picofarad is 0.000 000 000 001 farads. Your finger makes the capacitance of a crossing about 10 to 20 percent smaller. Percent means “out of a hundred.” Because this is the capacitance between two strips, it's called mutual capacitance. A screen that works like this is called a capacitive touchscreen.

Why not just measure the rows and columns separately?

There's another way: you measure each row and each column separately. If there's a finger above one, the chip measures extra capacitance there. That's called self-capacitance. With one finger, that works fine. But if you put down two fingers, one on row 2 at column 3 and one on row 5 at column 7, the chip only knows: rows 2 and 5, columns 3 and 7. That could also be row 2 at column 7 and row 5 at column 3. Fake fingers like that are called ghost touches.

If you measure every crossing separately, like when you measured the screen row by row above, you don't have that problem. That's why phones mainly use mutual capacitance. They use self-capacitance as a helper, for example to recognize water drops.

Doing the math between the strips

Say three columns are 10, 15 and 20 millimeters from the edge. The signal there drops by 2, 6 and 4 (the unit doesn't matter here). The chip takes a weighted average: the more signal is missing at a spot, the more that spot counts.

position ≈ (10 × 2 + 15 × 6 + 20 × 4) ÷ (2 + 6 + 4) = 190 ÷ 12 ≈ 15.8 millimeters

The sign ≈ means “about,” × means “times” and ÷ means “divided by.” So your finger is just a little to the right of the middle column. Working out a value between two measuring points is called interpolating. When you dragged across the grid above, the phone did exactly this. That's why it sees something like “column 3.4.”

How many measurements per second?

A phone with 16 columns and 32 rows has 16 × 32 = 512 crossings. If it scans 240 times a second, that's 512 × 240 = 122,880 measurements per second. The comma in 122,880 separates the thousands: that's more than one hundred twenty thousand. Luckily, the chip measures all the columns of a row at the same time. So it only has to send a pulse through a row 32 × 240 = 7,680 times a second.

Water, chargers and pens

Water conducts a little, too, and drops can disturb the field. That's why the chip pays attention to the shape and uses self-capacitance to tell a drop from a finger. That doesn't always work. A bad charger can add interference to the current, so the screen sometimes sees taps you didn't make.

A pen with a soft, conductive tip works just like a finger. An active pen, like the ones for tablets, has a battery and sends out its own electric signal that the grid picks up. A pen like that can also pass on how hard you press.

Think further

Why does your screen sometimes act weird when it's wet, for example in the rain?

Give me a hint

What does rainwater have in common with your finger?

See a possible answer

Rainwater conducts a little electricity, just like your finger. So drops can also pull some of the field away, or connect crossings to each other. Then the chip sees spots with less signal where there's no finger, or it gets confused about your real finger. Phones try to recognize drops by their shape, but that doesn't always work. Underwater, a touchscreen hardly works at all, because there's water everywhere.

You want to make a pen without a battery for drawing on a phone. What do you need to think about?

Give me a hint

What does the tip need to do when it touches the glass? And how does your body play a part?

See a few ideas

The tip has to conduct electricity (conductive rubber, for example) and be soft so it doesn't scratch the glass. It has to be about as wide as a fingertip, or else it covers too few crossings and the chip misses it. And the tip has to be connected to your hand through the pen, for example with a metal tube, so your body helps out. That's why lots of simple touchscreen pens have a thick, soft tip and a metal barrel. What else would you come up with?

Words you now know

Touchscreen
A screen that notices where you touch it.
Conduct
To let electricity through, like metal, salty water and your body do.
Insulator
A material that doesn't let electricity through, like plastic, glass or the fabric of a glove.
ITO
A see-through material that conducts electricity. The strips under the glass are made of it.
Grid
Rows and columns that cross each other, like the squares on graph paper.
Crossing
The spot where a row runs over a column. That's where the chip measures the signal.
Charge
Something that makes things electric. It's what gives you a little shock from a doorknob.
Electric field
The invisible influence around charge that pushes and pulls other charge.
Chip
A small computing part in your phone. This one measures the grid and works out where you are.
Scanning
Measuring something bit by bit, here row by row.
Capacitor
Two conductors with an insulator in between, which together can hold a little charge.
Voltage
How hard charge is pushed. You measure it in volts.
Capacitance
How much charge a capacitor can hold per volt. You measure it in farads.
Mutual capacitance
The capacitance between a row and a column, which your finger makes smaller.
Self-capacitance
The capacitance of one row or one column on its own, which your finger makes larger.
Percent
“Out of a hundred”: 20 percent is 20 out of 100.
Ghost touch
A spot where the phone thinks it sees a finger, even though nothing is there.
Interpolating
Working out a value between two measuring points.

Test yourself

What does the chip notice when you touch a crossing?

See the answer

That less signal arrives there.

Why doesn't an ordinary glove work on a touchscreen?

See the answer

Fabric barely conducts electricity.

How can your phone see two fingers at the same time?

See the answer

It measures every crossing separately and finds two spots with less signal.

Tricky question: some phones have a glove mode. What does it most likely change?

See the answer

The chip also counts a smaller drop in the signal as a touch.

Explore more