---
title: LEDs and laser diodes
heading: Radiative recombination, light extraction, threshold gain and the cavity
eyebrow: S1 · Lesson 20 · LEDs and laser diodes
xp: 50
---

::: hook
Run a solar cell backward and it glows. In a direct-gap semiconductor like GaAs, an electron can drop straight across the gap and emit a photon, so forward-biasing a junction turns current into light. An LED stops there. A laser diode adds mirrors and enough current that the light stimulates more emission than the material absorbs, and above that threshold the output becomes a narrow, coherent beam. This lesson follows the numbers that decide how bright each one is: internal efficiency, the light that can escape a high-index crystal, and the gain that must balance the cavity's losses.
:::

::: play
- The curve is a laser diode's light–current characteristic: below threshold, a faint spontaneous glow; above it, output rising steeply with a slope set by the differential efficiency.
- Raise the threshold current and the line shifts right: the same drive gives less light. Raise the slope and every milliamp above threshold gives more.
- The readout is the output at 50 mA.
:::

```sim plot
view: graph
x: I = 0..60 mA
y: P = 0..50 mW
slider: t = 5..40 step 1 = 15 mA
slider: s = 0.2..1.2 step 0.05 = 0.8
plot: s*(I - t)*step(I - t) + 0.02*I | label: light out
readout: output at 50 mA (mW) = s*(50 - t) + 1 | digits: 3
```

::: predict
## Light generated inside GaAs (n = 3.5) heads off in all directions. Roughly what fraction can escape through one flat top surface?

- [x] About 2%
- [ ] About 20%
- [ ] About 50%
- [ ] Nearly all of it

::: reveal
Only rays within the critical angle, $\arcsin(1/3.5) = 16.6°$, get out; the rest are totally reflected. That cone holds $(1 - \cos 16.6°)/2 = 2.1\%$ of all directions, and Fresnel reflection takes a little more. High-brightness LEDs roughen, shape and mirror their chips to get most of the trapped light out.
:::
:::

::: nameit
## LEDs

External quantum efficiency is the product of how many injected electron-hole pairs recombine radiatively (internal quantum efficiency) and how many photons escape (extraction efficiency):
$$\eta_\text{ext} = \eta_\text{int}\,\eta_\text{extract}, \qquad P = \eta_\text{ext}\frac{h\nu}{q}I$$
Photon energy is close to the gap: $\lambda(\text{µm}) \approx 1.24/E_g(\text{eV})$.

## Laser threshold

A cavity of length L with facet reflectivities $R_1$, $R_2$ lases when the gain g (times the confinement factor Γ) pays for the internal loss $\alpha_i$ and the mirror loss:
$$\Gamma g_\text{th} = \alpha_i + \alpha_m, \qquad \alpha_m = \frac{1}{2L}\ln\frac{1}{R_1R_2}$$
A cleaved GaAs facet reflects $((n - 1)/(n + 1))^2 \approx 0.31$.

## Above threshold

Extra current goes into stimulated emission, with differential efficiency $\eta_d = \eta_i\,\alpha_m/(\alpha_m + \alpha_i)$, so the slope is $\eta_d h\nu/q$ watts per ampere (from both facets). The cavity's modes are spaced $\Delta\lambda = \lambda^2/(2n_gL)$ apart.
:::

::: example
## A blue LED (450 nm) runs at 20 mA with 60% external quantum efficiency. How many photons and how much light does it emit?

::: solution
1. **Photons per second.**
   $$\frac{0.6 \times 0.02}{1.602 \times 10^{-19}} = 7.5 \times 10^{16}$$
2. **Photon energy.**
   $$\frac{1.24}{0.45} = 2.76\ \text{eV}$$
3. **Light output.**
   $$0.6 \times 0.02 \times 2.76 = 33\ \text{mW}$$
4. **Wall-plug efficiency.** At about 3 V of drive (60 mW in), its wall-plug efficiency is 55%.

**Answer:** $7.5 \times 10^{16}$ photons per second, carrying 33 mW of light.
:::
:::

::: example
## A GaAs laser is 300 µm long with cleaved facets (R = 0.31 each) and 10 cm⁻¹ of internal loss. What modal gain does it need, and what is its differential efficiency with $\eta_i$ = 0.9?

::: solution
1. **Mirror loss.**
   $$\begin{aligned} \alpha_m &= \frac{1}{0.06}\ln\frac{1}{0.31^2} \\ &= 39.0\ \text{cm}^{-1} \end{aligned}$$
2. **Threshold gain.** Adding the internal loss, threshold needs 49.0 cm⁻¹.
3. **Differential efficiency.**
   $$\begin{aligned} \eta_d &= 0.9 \times \frac{39.0}{49.0} \\ &= 0.72 \end{aligned}$$
4. **Slope.** At 850 nm (1.46 eV),
   $$0.72 \times 1.46 = 1.05\ \text{W/A}$$
   from both facets: about 0.52 W/A from each.

**Answer:** it needs a modal gain of 49.0 cm⁻¹, and its differential efficiency is 0.72, a slope of 1.05 W/A from both facets.
:::
:::

::: example
## How far apart are that laser's longitudinal modes at 850 nm, with group index 3.6?

::: solution
1. **Mode spacing.**
   $$\begin{aligned} \Delta\lambda &= \frac{\lambda^2}{2n_gL} \\ &= \frac{(0.85\ \mu\text{m})^2}{2 \times 3.6 \times 300\ \mu\text{m}} \\ &= 0.33\ \text{nm} \end{aligned}$$
2. **Single-mode lasers.** A Fabry–Pérot laser lases on several of them at once; a DFB laser's grating picks just one, which is what long fiber links need.

**Answer:** 0.33 nm apart.
:::
:::

::: check
kind: parts
given: n = 2.5 | 3.5 | 3.6

## Light is generated inside a crystal of index {n}.

::: part
answer: asin(1/n)*180/pi
unit: °
tolerance: 0.5%

### What is the critical angle?

::: misses
- [any] $\arcsin(1/n)$.
:::
:::

::: part
answer: (1 - cos(asin(1/n)))/2*100
unit: %
tolerance: 0.5%

### What fraction of all directions lies within that escape cone?

::: misses
- [any] $(1 - \cos\theta_c)/2$.
:::
:::
:::

::: check
kind: parts
given: e = 20 | 60 | 80; L = 450 | 530 | 630 | 850; I = 10 | 20 | 350

## An LED at {L} nm has {e}% external quantum efficiency and runs at {I} mA.

::: part
answer: e/100*I/1000/1.602e-19
unit: photons/s
tolerance: 0.5%

### How many photons does it emit per second?

::: misses
- [any] EQE × I/q.
:::
:::

::: part
answer: e/100*I*1240/L
unit: mW
tolerance: 0.5%

### What optical power?

::: misses
- [any] EQE × I × photon energy in volts.
:::
:::
:::

::: check
kind: parts
given: L = 200 | 300 | 500; R1 = 0.31 | 0.9; R2 = 0.31 | 0.05; a = 5 | 10 | 20

## A laser cavity {L} µm long has facet reflectivities {R1} and {R2} and {a} cm⁻¹ of internal loss.

::: part
answer: 1/(2*L*1e-4)*ln(1/(R1*R2))
unit: cm⁻¹
tolerance: 0.5%

### What is its mirror loss?

::: misses
- [any] $\frac{1}{2L}\ln\frac{1}{R_1R_2}$.
:::
:::

::: part
answer: 1/(2*L*1e-4)*ln(1/(R1*R2)) + a
unit: cm⁻¹
tolerance: 0.5%

### What modal gain must it reach?

::: misses
- [any] Mirror plus internal loss.
:::
:::

::: part
answer: 0.9*(1/(2*L*1e-4)*ln(1/(R1*R2)))/(1/(2*L*1e-4)*ln(1/(R1*R2)) + a)
tolerance: 0.5%

### What differential efficiency does it have with $\eta_i$ = 0.9?

::: misses
- [any] $\eta_i\alpha_m/(\alpha_m + \alpha_i)$.
:::
:::
:::

::: check
kind: parts
given: l = 0.85 | 1.31 | 1.55; n = 3.5 | 3.6 | 4; L = 200 | 300 | 1000

## A laser at {l} µm has group index {n} and a {L} µm cavity.

::: part
answer: (l*1e3)^2/(2*n*L*1e3)
unit: nm
tolerance: 0.5%

### How far apart are its modes?

::: misses
- [any] $\lambda^2/(2n_gL)$.
:::
:::

::: part
answer: 2.998e8/(2*n*L*1e-6)/1e9
unit: GHz
tolerance: 0.5%

### In frequency?

::: misses
- [any] $c/(2n_gL)$.
:::
:::
:::

::: check
kind: parts
given: t = 5 | 15 | 30; s = 0.3 | 0.6 | 1; I = 40 | 80

## A laser has a {t} mA threshold and a slope of {s} W/A.

::: part
answer: s*(I - t)
unit: mW
tolerance: 0.5%

### What does it emit at {I} mA?

::: misses
- [s*I] Only current above threshold lases.
- [any] Slope × (I − threshold).
:::
:::

::: part
answer: t + 10/s
unit: mA
tolerance: 0.5%

### What current gives 10 mW?

::: misses
- [any] Threshold + power ÷ slope.
:::
:::
:::

::: check
kind: choice

## Why do silicon LEDs glow so weakly, while GaAs LEDs are bright?

- [ ] Silicon's gap is too small to emit visible light
- [x] Silicon's gap is indirect: an electron must also exchange momentum with a phonon to emit, so slow radiative recombination loses to nonradiative paths
- [ ] Silicon absorbs all the light it makes
- [ ] Silicon can't be doped p-type and n-type in one crystal

::: misses
- [1] GaAs emits in the infrared too; the difference is efficiency.
- [3] Absorption is weak near an indirect gap; the light is simply hardly made.
- [4] Silicon junctions are routine.
:::
:::

::: check
kind: derivation
vars: n = 1.5..4, a = 1..30, L = 0.01..0.1

## A cavity of length L (cm) has two cleaved facets of a crystal of index n, and internal loss a.

::: step
answer: ((n - 1)/(n + 1))^2

### What is each facet's reflectivity?
:::

::: step
answer: 1/L*ln((n + 1)^2/(n - 1)^2)

### What is the mirror loss, $\frac{1}{2L}\ln\frac{1}{R^2}$?
:::

::: step
answer: 1/L*ln((n + 1)^2/(n - 1)^2) + a

### What gain does threshold need?
:::

::: right
Right. Longer cavities have lower mirror loss and so lower threshold gain, but they need more current to pump.
:::
:::

::: check
kind: python

## Write `laser(L_um, R1, R2, alpha_i, eta_i, lam_um)`: return a dict with the mirror loss `am` (1/cm), the threshold gain `gth` (1/cm), the differential efficiency `etad`, and the slope `slope` in W/A (total from both facets, $\eta_d \times 1.24/\lambda$).

```python starter
import math

def laser(L_um, R1, R2, alpha_i, eta_i, lam_um):
    return {}
```

```python solution
import math

def laser(L_um, R1, R2, alpha_i, eta_i, lam_um):
    L = L_um * 1e-4
    am = math.log(1 / (R1 * R2)) / (2 * L)
    gth = am + alpha_i
    etad = eta_i * am / gth
    return {'am': am, 'gth': gth, 'etad': etad, 'slope': etad * 1.24 / lam_um}
```

```python tests
r = laser(300, 0.3086, 0.3086, 10, 0.9, 0.85)
assert abs(r['am'] - 39.19) < 0.05, "Cleaved GaAs, 300 µm: mirror loss 39.2 /cm."
assert abs(r['etad'] - 0.717) < 0.002, "Differential efficiency 0.72."
assert abs(r['slope'] - 1.046) < 0.005, "About 1.05 W/A from both facets."
r2 = laser(300, 0.95, 0.3086, 10, 0.9, 0.85)
assert r2['gth'] < r['gth'], "A high-reflection back facet lowers the threshold gain."
```

::: right
Right. Coating one facet to high reflectivity lowers threshold and sends most of the light out the other facet.
:::
:::

::: explain
## Why does a laser diode's output rise slowly below threshold and then steeply above it?

::: model
Below threshold the injected carriers recombine mostly by spontaneous emission, sending photons in all directions and into all modes, and the cavity's losses exceed the gain, so no mode builds up. As current rises, the carrier density and the gain rise until the gain in one mode equals the internal and mirror losses. Beyond that point the carrier density is clamped: any extra carriers are immediately converted into stimulated photons in the lasing mode, so almost all the extra current becomes output light, and the slope jumps to the differential efficiency times the photon energy.
:::
:::

::: practice
::: check
given: n = 2.4 | 2.5 | 3 | 3.3 | 3.5 | 3.6
answer: (1 - cos(asin(1/n)))/2*100
unit: %
tolerance: 0.5%

## Escape-cone fraction for index {n}?

::: misses
- [any] $(1 - \cos\theta_c)/2$.
:::
:::

::: check
given: L = 250 | 400; R = 0.31 | 0.5
answer: 1/(2*L*1e-4)*ln(1/(R*R))
unit: cm⁻¹
tolerance: 0.5%

## Mirror loss of a {L} µm cavity with both facets at {R}?

::: misses
- [any] $\frac{1}{2L}\ln\frac{1}{R^2}$.
:::
:::

::: check
given: l = 0.98 | 1.55; L = 300 | 600
answer: (l*1e3)^2/(2*3.6*L*1e3)
unit: nm
tolerance: 0.5%

## Mode spacing at {l} µm in a {L} µm cavity (group index 3.6)?

::: misses
- [any] $\lambda^2/(2n_gL)$.
:::
:::
:::
