Table of Contents
ToggleA component with no polarity, no active circuitry, and only two legs can still tell a streetlight when to turn on. A light dependent resistor does that by changing something as basic as its own resistance, and the physics behind that change is worth understanding properly.
A light dependent resistor turns a physical quantity, light intensity, directly into an electrical one, resistance, without any amplifier, power supply, or active circuitry of its own.
An LDR, also called a light dependent resistor, photoresistor, or photoconductive cell, is a passive resistor whose resistance falls as the light falling on it increases. It works entirely on photoconductivity, a semiconductor effect where absorbed light photons free up charge carriers and make the material conduct better.

Light dependent resistors come in standard sizes, commonly 5 mm, 8 mm, 12 mm, and 25 mm, and show up anywhere a circuit needs to sense whether it is light or dark rather than measure light with scientific precision.
This guide covers how an LDR is built, the physics behind its working principle, the actual formula connecting resistance to light intensity, its response time behavior, how it compares to a photodiode, the two LDR types, how to wire and test one, and where LDRs get used in real designs.
How Light Dependent Resistors Are Made
A light dependent resistor starts with a photosensitive semiconductor material, most commonly cadmium sulfide (CdS), though lead sulfide, lead selenide, indium antimonide, and cadmium selenide are also used depending on the wavelength range needed.
That material is deposited in a zig zag, snake like pattern rather than a simple straight strip. The zig zag shape exists purely to maximize the effective surface area exposed to light within a small physical footprint, directly improving sensitivity.
Two metal contacts sit at either end of the zig zag track, providing the electrical connection to the rest of the circuit. A transparent protective coating is then applied over the whole assembly, shielding the photosensitive material from dust and moisture while still letting light reach it.
Light Dependent Resistor Working Principle
An LDR works on photoconductivity. When light strikes the photoconductive material, photons transfer their energy to electrons sitting in the valence band. If that energy is large enough, the electrons jump up into the conduction band, where they are free to move and carry current.
For this to happen at all, the incoming photon energy has to exceed the material's bandgap energy. That relationship follows directly from basic photon physics.
- E is the energy of an incoming photon
- h is Planck's constant
- c is the speed of light
- λ is the wavelength of the incident light
Only photons with energy E at or above the semiconductor's bandgap energy can excite an electron into the conduction band. This is exactly why a light dependent resistor's sensitivity depends so heavily on the wavelength of light hitting it, not just its intensity.
More free electrons means more current flow for a given voltage, which is the same as saying the material's resistance has dropped. In complete darkness, a typical light dependent resistor sits at its highest resistance, often quoted around 10¹² ohms in the underlying semiconductor and commonly hundreds of kilohms to several megohms in a packaged device. That resistance falls steadily as light intensity increases.
The Resistance vs Illuminance Relationship
The relationship between a light dependent resistor's resistance and the light falling on it is not linear. It follows a power law, which is exactly what you see plotted as a straight line on the log log resistance versus illuminance graph in most photoresistor datasheets.
- R is the LDR resistance
- A is a constant specific to the individual device
- E is illuminance, typically in lux
- γ (gamma) is the slope of the log log curve, commonly around 0.7 to 0.9 for CdS cells
A higher gamma means resistance drops more sharply for a given increase in light, which is why datasheets always specify gamma alongside the dark and bright resistance figures for any light dependent resistor rather than expecting users to calculate it from two data points alone.
Two light dependent resistors from the same production batch can still show a meaningful spread in resistance at identical light levels. Treat any single LDR reading as an estimate of light level, not a calibrated measurement, unless the specific unit has been individually characterized.
%20(2).jpg)
Response Time and Latency in Light Dependent Resistor Circuits
Latency shows up as the delay between a change in light level and the moment the LDR's resistance settles at its new stable value. This delay is not symmetric.
Going from dark to light, a light dependent resistor typically responds within tens of milliseconds. Going from light back to dark, the resistance can take up to roughly a second to fully stabilize, since carrier recombination is inherently slower than carrier generation.
Datasheets usually capture this by specifying dark resistance at fixed intervals after the light is removed, commonly at one second and five seconds, giving designers a concrete picture of how the device settles rather than a single averaged number.
This slow, asymmetric response rules LDRs out for applications needing fast light detection, such as optical communication. It is exactly the opposite in applications like audio compressors, where a gradual, smoothed response to changing signal levels is the whole point of choosing an LDR over a faster photodiode.
LDR vs Photodiode
LDR (Photoresistor)
A passive resistor with no PN junction. Slower response, larger resistance swing, and no polarity, so it can be wired either way around.
Photodiode
A semiconductor device built around a PN junction that converts light energy directly into electrical current. Fast response and polarity sensitive, suited to optical communication and precise light detection.
Types of LDR: Intrinsic vs Extrinsic Photoresistors
Intrinsic Photoresistor
Made from pure, undoped semiconductor material such as silicon or germanium. Incident light with enough energy excites electrons directly from the valence band into the conduction band.
Extrinsic Photoresistor
Made from a doped semiconductor, with impurities like phosphorus added deliberately. Extrinsic LDRs are generally designed for longer wavelengths, with a tendency toward infrared sensitivity.
Wiring an LDR: The Voltage Divider Circuit
The most common way to use an LDR in a circuit is inside a voltage divider, pairing it with a fixed resistor so a changing resistance becomes a changing voltage that a microcontroller ADC or comparator can read.
- Vin is the supply voltage
- R_LDR is the LDR's current resistance
- R_fixed is the chosen fixed resistor
Worked example: With a 5V supply, a 10 kΩ fixed resistor on top, and the LDR to ground, if the LDR sits at 1 kΩ in bright light, Vout equals 5V times 10kΩ divided by 11kΩ, which comes to about 4.5V. In darkness, if the LDR rises to 1 MΩ, Vout drops to roughly 0.05V. Swapping the LDR and fixed resistor positions inverts this relationship, which is exactly how designers choose whether a circuit should trigger on darkness or on brightness.
Watch: LDR Working Principle
This video walks through the same photoconductive behavior with a simple demonstration circuit.
Video: "Light Dependent Resistors (LDR): Working Principle", via YouTube.
How to Test an LDR
Set the multimeter to resistance mode
Select the ohms setting on a digital or analog multimeter before connecting anything.
Connect the probes
Since an LDR has no polarity, connect either probe to either leg of the component.
Shine light on the surface
Point a torch or bright light source directly at the LDR's face and note the reading.
Cover it or place it in darkness
Shade the LDR with your hand or move it into a dark space and note the new reading.
Compare the two readings
A working LDR shows a low resistance under light, sometimes as low as 100 ohms, and a high resistance in darkness, often into the megaohm range.
LDR Applications
Automatic Street Lights
Switch on at dusk and off at dawn based purely on ambient light.
Smoke Detectors
Sense light scattering caused by smoke particles in the detection chamber.
Camera Light Meters
Estimate ambient light to guide exposure settings.
Laser Security Systems
Detect an interruption in a laser beam when someone crosses it.
Audio Dynamic Compressors
Use an LDR and LED pair to create smooth, gradual gain changes.
Clock Radios
Dim the display automatically as room light falls.
Advantages and Disadvantages of LDRs
✔ Advantages
- Very low cost compared to photodiodes and phototransistors
- No polarity, simplifying wiring and reducing installation errors
- Large resistance swing makes light versus dark detection simple
- Naturally smooths rapid light fluctuations without extra filtering
✘ Disadvantages
- Slow, asymmetric response time unsuited to fast light detection
- Significant unit to unit variation limits precise measurement
- Sensitivity of a light dependent resistor is temperature dependent, adding drift in hot environments
- CdS types contain cadmium, a restricted substance in many regions
Choosing the Right Light Dependent Resistor for a Project
Resistance Range
Match the dark and light resistance range to what the rest of the circuit, especially the fixed resistor in the divider, actually needs.
Spectral Response
Confirm the LDR's peak sensitivity, commonly around 550 nm for CdS types, lines up with the light source the application depends on.
Physical Size
Larger LDRs tend to offer more stable readings, while smaller ones respond faster and fit tighter enclosures.
Response Time
If the application genuinely needs fast detection, an LDR is the wrong component regardless of everything else, and a photodiode belongs there instead.
FAQs on Light Dependent Resistors
You May Also Like
Electrical Conductivity Explained: Definition, Formula, Unit, and Real Examples
Photoconductivity is really just electrical conductivity triggered by light instead of a fixed material property. This guide covers the conductivity formula, the SI unit, and how conductivity relates to resistivity, the same underlying physics an LDR relies on.
Read Full Article →Related articles on this site
These related reads pair well with a deeper look at LDRs.
- Resistor Color Code Guide: Types, Reading Steps and Applications
- Capacitor Types Explained: 7 Critical Facts Every Engineer Must Know
- Diode Types Explained: 6 Critical Facts Every Engineer Must Know
- 4 to 20 mA Current Loop Explained: How It Works, Wiring and Troubleshooting
- What is Electromagnetic Interference (EMI)?
External References
These sources go deeper into photoresistor theory and specifications.
- Photoresistor, Wikipedia
- Light Dependent Resistor LDR, Photo-Resistor, Electronics Notes
- Photoresistors, ScienceDirect Topics
What we learn today
- A light dependent resistor is a passive photoconductive resistor whose resistance falls as light intensity rises, governed by the power law R equals A times E to the negative gamma.
- Photon energy must exceed the semiconductor's bandgap energy for photoconductivity to occur at all, linking LDR sensitivity directly to light wavelength.
- Response time is slow and asymmetric, useful in applications wanting a smoothed response, unsuitable wherever fast light detection matters.
- Intrinsic LDRs use pure semiconductors, while extrinsic LDRs use doped materials tuned toward longer, infrared leaning wavelengths.
- A simple voltage divider with a fixed resistor turns an LDR's resistance swing into a usable analog voltage for any microcontroller or comparator circuit.
