How Do Image Sensors Work? Inside a Phone Camera Sensor

14 min read · Updated: October 23, 2026

An image sensor is a semiconductor chip that turns the light gathered by a camera lens into an electrical signal. Its surface holds tens of millions of tiny light-catching spots, called pixels. Each pixel counts the light that reaches it as a number of electrons. Those counts are turned into numbers and laid out in a grid. That grid is the raw material of a digital photo.

What you'll learn

  • How light becomes electrons, then a voltage, then a number
  • Why you get color photos even though each pixel measures only one color
  • What back-illuminated and stacked sensors are, and why CMOS replaced CCD as the main type
  • What "50 megapixels" means, and why more pixels is not always better

Prerequisites: none. It helps to know that a semiconductor is "a material whose ability to carry current changes with light or voltage" ("What Is a Semiconductor?").

Where you see it: "electronic eyes" everywhere

Behind the round window on the back of your phone, there is a lens. Behind the lens sits a small chip. This chip is the image sensor. The lens gathers light and forms an image, and the image sensor turns that image into an electrical signal.

Image sensors are used in more than phones and digital cameras. They are in the cameras that watch around a car, security cameras, video doorbells and laptop webcams. In factories, inspection cameras use them to spot scratches on products moving down the line.

How it works 1: particles of light free up electrons

Light behaves as a stream of tiny packets of energy. Each packet is called a photon. To keep things simple, we will describe light here as "a stream of particles." Brighter light means more particles arrive each second.

In a silicon crystal, electrons are normally busy holding the atoms together, so they cannot move freely. When a particle of light hits one, the electron takes its energy and becomes free to move. This effect, where light frees electrons inside a material, is called the internal photoelectric effect. The electron also leaves a "hole" behind, but here we will follow only the electrons.

Each material needs a set amount of energy to free an electron. This is the "step" in "What Is a Semiconductor?" Particles of visible light carry enough energy to climb this step in silicon. That is why silicon is good at turning visible light into electrons.

The part that catches these freed electrons and stores them is the photodiode. Where two different kinds of silicon meet, an electric force forms that pulls electrons to one place. This force gathers the electrons made by light into a small "pool."

The time during which a pixel takes in light and stores electrons is called the exposure. During the exposure, electrons build up in the photodiode in step with the light that arrives. In a dark place, a longer exposure gives a brighter picture. That is because the electrons have more time to build up.

How it works 2: turning electrons into numbers

The stored electrons are not a photo yet. Here we describe the type used in phones, called CMOS (explained later). A small circuit inside each pixel turns the amount of electrons into a voltage. Voltage is the strength of the push on electricity, and it is easy to measure. The more electrons there are, the more the voltage changes.

Next, this voltage is turned into a whole number. Turning a smoothly changing voltage into a number in steps is called AD conversion (analog-to-digital conversion). For example, the result might be "some whole number from 0 to 1,023." This way, the brightness of each pixel becomes a number.

In one pixel, light becomes electrons, then a voltage, then a number What happens in one pixel Light From the lens More when brighter Electrons Photodiode Build up in exposure Voltage Circuit in the pixel Set by electron count Number AD conversion e.g. brightness 512
The same thing happens in each of the tens of millions of pixels on the sensor. The range of numbers (such as 0 to 1,023) depends on the sensor's settings. Left out: the color filters, the processing that cancels noise, and the order of readout.

The numbers from tens of millions of pixels, laid out in the same order as the pixels, are the raw data of a photo. The phone then works on this table of numbers. It calculates colors and reduces graininess, among other steps, to produce the photo you see.

How it works 3: how does a sensor tell colors apart?

A photodiode can only tell how much light arrived. Red light and blue light free electrons in the same way. So a small colored film is placed over each pixel. It lets through only light of one set color. This film is called a color filter.

The most widely used layout of these filters is the Bayer pattern. It takes 2×2 pixels as one set: two green, one red and one blue. This set repeats across and down the sensor. The layout was devised by Bryce Bayer of Kodak and was patented in the US in 1976. Green appears twice because the human eye is most sensitive to green light. Brightness and fine detail are read mainly from the green pixels.

The Bayer pattern: filters for two green, one red and one blue pixel in each 2×2 set R G R G G B G B R G R G G B G B Thick box: 1 set 2 G, 1 R, 1 B Each pixel measures 1 color Other 2 colors: from neighbors Part of the sensor surface, seen from above
Each letter is the color of light that the filter over that pixel lets through (R = red, G = green, B = blue). On a real sensor, this pattern repeats thousands of times across and down. Left out: the microlenses above the filters, and variations such as layouts that group four pixels of the same color.

With this layout, each pixel measures the brightness of only one color. A red pixel, for example, has no green or blue value. So the two missing colors are estimated from the green and blue pixels around it. This calculation is called demosaicing (color interpolation).

Because it is an estimate, it sometimes goes wrong. When you photograph clothes with fine stripes, colored fringes or patterns that are not really there may appear. A camera's image processing reduces such errors, for example by checking which way the edges run.

How it works 4: catching as much light as possible

Not all of a pixel's area can catch light. A pixel also holds transistors and wiring that read out the electrons. So a tiny convex lens is placed over each pixel to focus light onto the part that senses it. This is called a microlens.

The way the chip is built also matters. A normal chip has transistors made on the surface of a silicon wafer, with many layers of metal wiring stacked on top ("How Are Chips Made?"). The older design, which lets light in from this front side, is called front-side illumination. Here, light must pass through gaps in the wiring, and the wiring blocks some of it.

So a new design appeared. The chip is flipped over, and the wafer is thinned to a few µm. (A micrometer, µm, is one-thousandth of a millimeter.) Light then enters from the back, where there is no wiring. This is called backside illumination (BSI). Sony began mass-producing CMOS image sensors of this type in 2009. They first went into its Handycam video cameras. At the time, the company said they had about twice the sensitivity of earlier products.

In a back-illuminated sensor, a support wafer is bonded to the back to hold up the thinned chip. Replace this support with a chip of signal-processing circuits, and you get a stacked sensor. Sony announced its development in January 2012 and began shipping the first product that October. Placing the pixels and the circuits one above the other makes the chip smaller and leaves room for more circuits.

Cross-sections of front-side illuminated, back-side illuminated and stacked image sensors Front-side Back-side Stacked Wires Photodiode Wafer Photodiode Wires Support Photodiode Wires Logic chip Wires block light Light gets straight in Circuits stacked below
A sketch of a vertical cut through two pixels. Light enters from the top. The rounded shapes at the very top are microlenses. In the front-side design, light passes through the gaps in the wiring (the narrow vertical strips). Layer thicknesses are not to scale. Left out: color filters, transistors, and the parts that connect the chips.

A table of the differences between the three designs is in "FSI vs BSI vs Stacked Image Sensors."

CMOS and CCD: two ways to read out

There are two types of image sensor, which differ in how they read out the electrons. One is the CCD. It passes each pixel's electrons from neighbor to neighbor, like a bucket brigade. A single circuit at the exit turns them all into voltages. The CCD was invented at Bell Labs in the US in 1969. Its two inventors received the 2009 Nobel Prize in Physics.

The other is the CMOS image sensor. CMOS is the name of a way of building transistor circuits, the same kind used in CPUs ("What Is a Transistor?"). In this type, each pixel turns its electrons into a voltage itself. Circuits for each column then read the pixels out in parallel.

CMOS sensors read out quickly and use little power. Circuits for AD conversion and image processing can also sit on the same chip or on a stacked chip. In the past, though, CCDs had less noise, the random variation that makes photos look grainy. So CCDs were chosen where image quality mattered most.

Later, CMOS sensors were improved to reduce noise. Today, almost all sensors in phones and digital cameras are CMOS. CCDs are still used in some areas, such as astronomy and scientific measurement. A table of the differences is in "CMOS vs CCD Image Sensors."

Why bigger pixels do better in the dark

Take many shots of a scene with the same brightness. The number of electrons in one pixel changes a little every time. That is because particles of light arrive at random moments, like raindrops. This random variation is called shot noise. It is one of the main reasons dark photos look grainy.

The size of this variation follows a fixed rule. If a pixel collects 100 electrons on average, the variation is about ±10 electrons, or 10% of the average. If the average is 10,000, the variation is about ±100, which is only 1%. In math terms, a rough measure of the variation is the square root of the average count. (The square root is the number that gives that count when multiplied by itself.)

So the more particles of light one pixel collects, the smaller the variation as a share, and the smoother the picture. Bigger pixels, and bigger sensors overall, can collect more light. Some phone night modes take many shots and combine them. This, too, is a way to collect more light. To keep things simple, we leave out other noise, such as noise added by the circuits.

What does "50 megapixels" count?

In "50MP," MP stands for megapixels, and one megapixel is one million pixels. So 50MP means the sensor has about 50 million pixels. For a frame with a 4:3 width-to-height ratio, that works out to about 8,200 pixels across and about 6,100 down.

Fit more pixels onto a sensor of the same size, and each pixel gets smaller. Each pixel then gets less light, so the variation from the last section grows as a share. More pixels can capture finer detail. But in low light, they can be a disadvantage.

So some high-resolution phone sensors put the same color filter on four neighboring pixels. In dark scenes, the signals from these four pixels are combined and treated as one big pixel. Combining pixels like this is called binning.

For example, Apple's 2022 iPhone 14 Pro uses a 48-megapixel sensor. It combines four pixels into one, so its photos are normally 12 megapixels. With some settings, it can also shoot at the full 48 megapixels without combining.

Readout order and distortion

Many CMOS image sensors read out the pixels one row at a time, starting from the top. To match this, the start and end of the exposure also shift slightly from row to row. This method is called a rolling shutter. So a fast train or a spinning propeller can come out slanted or bent.

There is also a method where all pixels are exposed at the same moment. Each pixel briefly holds its electrons inside itself before they are read out. This is called a global shutter. Moving objects do not get distorted, but each pixel needs more circuitry for the holding part. Global shutters are used in places such as factory inspection cameras. In 2023, Sony announced the α9 III, a camera with a sensor of this type.

Companies that make image sensors

The major makers of image sensors include Sony, Samsung Electronics and OmniVision. Within the Sony group, Sony Semiconductor Solutions makes them. For phone sensors, Sony was number one in 2024, according to the research firms TechInsights and Counterpoint.

According to Sony, it was the first in the world to mass-produce both of the designs described earlier: back-illuminated and stacked sensors. In an article it published in 2022, the company said that about 90% of its image sensors are stacked.

Common misconceptions

Myth: The more pixels a camera has, the better its photos

In fact, image quality depends on the lens, the sensor size, the size of each pixel and the image processing together. For the same sensor size, more pixels means each pixel gets less light. Then dark scenes look grainier. Pixel count stands out as a sign of quality because it is easy to compare on a spec sheet.

Myth: Each pixel measures all three colors: red, green and blue

In fact, on most sensors each pixel measures the brightness of only one color. The two missing colors are calculated from the values of the pixels around it. In the finished photo, every pixel has values for all three colors. That makes it look as if all colors were measured from the start.

Myth: A sensor burns the image itself onto its surface, like film

In fact, each pixel only measures the electrons stored during the exposure, turns that into a number and sends it out. After readout, the electrons are thrown away, and the pixel gets ready for the next shot. What remains as a photo is a list of numbers saved in memory. The phrase "taking a picture" makes people imagine a picture left on the sensor.

By the numbers

ItemFigureNote
Layout of 50MP (50 million pixels)About 8,200 across × 6,100 downFor a 4:3 frame (our calculation)
Color shares in the Bayer patternGreen 1/2, red 1/4, blue 1/4One set of 2×2 pixels
Variation at 100 electronsAbout ±10 (10%)Shot noise
Variation at 10,000 electronsAbout ±100 (1%)More light, smaller share
Light when 4 pixels are combined4 timesVariation as a share falls by about half
iPhone 14 Pro main camera48 megapixels → 12 megapixels2022. Combines 4 pixels into 1
Back-illuminated sensors mass-produced2009Sony. About twice the sensitivity of earlier products (company figure)
Stacked sensor announcedJanuary 2012Sony. First product shipped that October

Counting only shot noise, combining 4 pixels gives 4 times the light, but the variation as a share only halves. That is because the square root of 4 is 2. It also explains why tricks for collecting more light help only a little at a time.

Learn more

Read next

Articles in the series “Chips in everyday life”

  1. Memory vs Storage: What's the Difference? (RAM vs SSD)
  2. What Chips Are Inside a Smartphone? The Main Chips Explained
  3. What Is a Power Semiconductor? SiC, GaN and IGBTs Explained
  4. How Do Image Sensors Work? Inside a Phone Camera Sensor
  5. What Is a Microcontroller? Tiny Computers in Everyday Things
  6. How Do Solar Cells Work? Light to Electricity and Its Limits
  7. How Do LEDs Work? Turning Electricity Into Light in a Chip
  8. How Do Touchscreens Work? Capacitive Touch Explained
  9. How Do SSDs Work? Inside NAND Flash Memory, Explained
  10. What Is an Analog Chip? Analog vs Digital ICs Explained
  11. How Does GPS Work? Satellites, Timing and Your Phone
  12. LCD vs OLED: How Phone and TV Screens Make Color
  13. How DRAM Works: Cells, Refresh and Sense Amplifiers
  14. What Is MEMS? How Accelerometers and Gyroscopes Work
  15. How Lithium-Ion Batteries Work: Charging, Aging and Safety
  16. What Is a Laser Diode? How It Differs From an LED
  17. What Is GaN (Gallium Nitride)? Why GaN Chargers Are Small
  18. What Is Silicon Carbide (SiC)? Why EV Inverters Use It
  19. How Wireless Charging Works: Induction, Qi and Qi2
  20. What Is an Inverter? DC to AC for Air Conditioners and EVs
  21. What Is USB? USB-C vs USB 3, USB4 and Power Delivery
  22. How Noise Cancelling Works: Using Sound to Erase Sound
  23. How Are Chips Cooled? Heat Sinks, Heat Pipes and Limits
  24. How AC Adapters and Chargers Work: From Wall Outlet to 5 V
  25. What Chips Are Inside an Electric Car? EV Chips Explained
  26. How Do Smartwatches Measure Heart Rate? Reading Blood Flow
  27. How Power Banks Work: How Many Charges From 10,000 mAh?
  28. What Is NFC? How Contactless Cards and Tap to Pay Work

Questions on this topic: Image sensors and optical devices

Sources

All explainers