---
title: "Doping: n-type and p-type"
heading: A few impurity atoms per million change everything
eyebrow: B9 · Lesson 14 · Doping
xp: 40
---

::: hook
Pure silicon is a poor conductor with equal numbers of electrons and holes. Replace one silicon atom in a million with phosphorus, which has one more outer electron than silicon, and that spare electron is freed at room temperature: the silicon now has a million times more free electrons than holes. Use boron, with one fewer, and you get holes instead. Making regions of each kind side by side in one crystal is how every diode and transistor is built.

::: play
- Silicon is doped with $N$ donor atoms (n-type) or acceptor atoms (p-type) per cm³. The graph shows the majority and minority carrier densities against the doping.
- With light doping, how do electrons and holes compare? With heavy doping?
- The readouts give the resistivity. How does it change for each factor of 10 in doping?
:::
:::

```sim plot
view: graph
x: N = 1e10..1e19 cm⁻³ log
y: n = 1..1e20 cm⁻³ log
slider: Nd = 1e12..1e19 = 1e16 cm⁻³ log
plot: N/2 + sqrt((N/2)^2 + 1e20) | label: majority carriers
plot: 1e20/(N/2 + sqrt((N/2)^2 + 1e20)) | color: ch2 | label: minority carriers
marker: x = Nd | label: your doping
readout: majority = Nd/2 + sqrt((Nd/2)^2 + 1e20) cm⁻³ | format: sci
readout: minority = 1e20/(Nd/2 + sqrt((Nd/2)^2 + 1e20)) cm⁻³ | format: sci
readout: resistivity (n-type) in Ω·cm = 1/(1.602e-19*(Nd/2 + sqrt((Nd/2)^2 + 1e20))*1350)
```

::: predict
## Silicon ($n_i = 10^{10}$ cm⁻³) is doped with $10^{16}$ phosphorus atoms per cm³. How many holes are left?

- [ ] $10^{16}$
- [ ] $10^{10}$
- [x] $10^4$
- [ ] None

::: reveal
About $10^4$ per cm³. Each phosphorus atom donates an electron, so $n \approx 10^{16}$. The product $np$ stays at $n_i^2 = 10^{20}$ (B9.13), because the flood of electrons fills holes faster: $p = 10^{20}/10^{16} = 10^4$. So doping adds one kind of carrier and also suppresses the other. That huge imbalance is what makes junctions between p and n regions so interesting.
:::
:::

::: nameit
## Doping

**Donors (n-type).** Silicon has four outer electrons, each forming a bond with a neighbor. A phosphorus or arsenic atom has five; when it takes a silicon atom's place, four bond and the fifth is held so loosely (about 0.045 eV) that room-temperature heat frees it. The atom becomes a fixed positive ion, and the crystal gains a free electron. Electrons are the **majority carriers**.

**Acceptors (p-type).** Boron has three outer electrons, so one bond is short an electron: a hole, held loosely and freed at room temperature as a neighbor's electron moves in. The boron becomes a fixed negative ion, and holes are the majority carriers.

**How many carriers.** For donor density $N_d \gg n_i$:

$$n \approx N_d \qquad p = \frac{n_i^2}{N_d}$$

(and the other way round for acceptors). The sim uses the exact form, $n = N_d/2 + \sqrt{(N_d/2)^2 + n_i^2}$, which also works when the doping is light.

**Conductivity.** With one carrier dominating, $\sigma \approx eN_d\mu_n$. Every factor of 10 in doping is a factor of 10 in conductivity (a bit less at high doping, where the impurities scatter carriers and mobility falls). Typical silicon wafers are doped around $10^{15}$ to $10^{16}$ cm⁻³ (1 to 10 Ω·cm); heavily doped contacts reach $10^{20}$.

**Still neutral.** A doped crystal has no net charge: each free electron is balanced by its donor ion. That changes at a junction, where electrons from the n side fill holes on the p side and leave the fixed ions uncovered, building the field that makes a diode work (course C5).

**Precision.** Modern chips control doping region by region, at nanometer scale, by firing ions into the silicon (ion implantation) and then heating it to repair the crystal.
:::

::: example
## Silicon is doped with $10^{16}$ phosphorus atoms per cm³. What fraction of the atoms are phosphorus, and what is the resistivity with $\mu_n$ = 1350 cm²/(V·s)?

::: solution
1. **Fraction of phosphorus.** Silicon has $5 \times 10^{22}$ atoms per cm³, so one atom in five million is phosphorus.
2. **Conductivity.**
   $$\begin{aligned} \sigma &= eN_d\mu_n \\ &= 1.602 \times 10^{-19} \times 10^{16} \times 1350 \\ &= 2.2\ \text{S/cm} \end{aligned}$$
3. **Resistivity.**
   $$\begin{aligned} \rho &= \frac{1}{\sigma} \\ &= 0.46\ \Omega\cdot\text{cm} \end{aligned}$$
   nearly a million times lower than pure silicon.
4. **A more accurate mobility.** At this doping the mobility is a little lower, about 1250, which gives 0.50 Ω·cm.

**Answer:** one atom in five million is phosphorus, and the resistivity is 0.46 Ω·cm (0.50 Ω·cm with the lower mobility).
:::
:::

::: example
## A region is doped with $10^{17}$ boron atoms per cm³. What are the hole and electron densities at 300 K?

::: solution
1. **Holes.**
   $$p \approx N_a = 10^{17}\ \text{cm}^{-3}$$
2. **Electrons.**
   $$\begin{aligned} n &= \frac{n_i^2}{N_a} \\ &= \frac{10^{20}}{10^{17}} \\ &= 10^3\ \text{cm}^{-3} \end{aligned}$$
3. **Compare.** Holes outnumber electrons by $10^{14}$ to one.

**Answer:** $10^{17}$ holes and $10^3$ electrons per cm³.
:::
:::

::: example
## Silicon contains 3 × 10¹⁶ phosphorus and 1 × 10¹⁶ boron atoms per cm³. What are its electron and hole densities ($n_i$ = 10¹⁰ cm⁻³)?

::: solution
1. **Net doping.** The boron atoms each capture one of the phosphorus atoms' spare electrons, so the net doping is
   $$\begin{aligned} N_d - N_a &= 3 \times 10^{16} - 1 \times 10^{16} \\ &= 2 \times 10^{16} \end{aligned}$$
   donors per cm³.
2. **Electrons.**
   $$n = 2 \times 10^{16}\ \text{cm}^{-3}$$
3. **Holes.**
   $$\begin{aligned} p &= \frac{n_i^2}{n} \\ &= 5000\ \text{cm}^{-3} \end{aligned}$$
4. **Building layers.** This **compensation** is how a chip's layers are built: a region doped n-type is turned p-type by adding more acceptors than it has donors.
5. **Mobility.** The carriers count only the difference, but the mobility still suffers from all 4 × 10¹⁶ ionized atoms.

**Answer:** $n = 2 \times 10^{16}$ cm⁻³ and $p$ = 5000 cm⁻³.
:::
:::

::: check
given: Nd = 1e14 | 1e15 | 1e16 | 1e17
answer: 1e20/Nd
unit: cm^-3
tolerance: 1%

## Silicon ($n_i = 10^{10}$ cm⁻³) is doped n-type with {Nd} donors per cm³. How many holes are there?

::: right
Right. $p = n_i^2/N_d$ = {answer}.
:::

::: misses
- [1e10] That's in pure silicon. Doping suppresses the minority carriers.
- [Nd] That's the electrons.
- [any] Not yet. $p = n_i^2/N_d$.
:::
:::

::: check
given: Nd = 1e14 | 1e15 | 1e16; mu = 1350
answer: 1/(1.602e-19*Nd*1350)
unit: Ω·cm
tolerance: 1%

## What is the resistivity of n-type silicon with {Nd} donors per cm³? (Electron mobility 1350 cm²/V·s.)

::: right
Right. $\rho = 1/(eN_d\mu_n)$ = {answer}.
:::

::: misses
- [1.602e-19*Nd*1350] That's the conductivity. Resistivity is its reciprocal.
- [any] Not yet. $\rho = 1/(eN_d\mu_n)$.
:::
:::

::: check
given: ppm = 1 | 10 | 100
answer: ppm*5e22/1e6
unit: cm^-3
tolerance: 0.5%

## Silicon has 5 × 10²² atoms per cm³. Doping it at {ppm} part(s) per million gives how many dopant atoms per cm³?

::: right
Right. {answer}.
:::

::: misses
- [ppm*5e22] Divide by a million.
- [any] Not yet. Multiply the atom density by the fraction.
:::
:::

::: check
kind: match

## Match each dopant with its type.

- phosphorus :: a donor: it adds a free electron
- boron :: an acceptor: it adds a hole
- germanium :: neither: same number of outer electrons as silicon
- pure silicon near absolute zero :: almost no free carriers at all

::: right
Right. What matters is having one more or one fewer outer electron than silicon, and temperature sets how many carriers pure silicon has.
:::
:::

::: check
given: Na = 1e15 | 1e16 | 1e17
answer: 1e20/Na
unit: cm^-3
tolerance: 1%

## Silicon is doped p-type with {Na} acceptors per cm³. How many free electrons are there?

::: right
Right. $n = n_i^2/N_a$ = {answer}.
:::

::: misses
- [Na] That's the holes.
- [1e10] Doping suppresses the minority carriers below $n_i$.
- [any] Not yet. $n = n_i^2/N_a$.
:::
:::

::: check
kind: parts
given: D = 2 | 5; A = 1 | 1.5

## Silicon contains {D} × 10¹⁶ donors and {A} × 10¹⁶ acceptors per cm³ ($n_i$ = 10¹⁰ cm⁻³).

::: part
answer: (D - A)*1e16
unit: /cm^3
tolerance: 0.5%

### What is its electron density?

::: misses
- [D*1e16] The acceptors capture some of the donors' electrons.
- [any] $n = N_D - N_A$.
:::
:::

::: part
answer: 1e20/((D - A)*1e16)
unit: /cm^3
tolerance: 0.5%

### What is its hole density?

::: misses
- [any] $p = \frac{n_i^2}{n}$.
:::
:::
:::

::: check
kind: derivation
vars: D = 1000000000000000..100000000000000000, A = 0..900000000000000, i = 1000000000..10000000000

## A crystal with $N_D$ donors (write D) and fewer $N_A$ acceptors (write A), intrinsic density $n_i$ (write i).

::: step
answer: D - A

### What is n?
:::

::: step
answer: i^2/(D - A)

### What is p?
:::

::: right
Right. Compensation leaves the difference as free carriers, while all the ionized atoms still scatter them.
:::
:::

::: explain
## Why does adding donor atoms reduce the number of holes in a semiconductor, rather than leaving it unchanged?

::: model
Holes and electrons are constantly being created by heat and destroyed when they meet and recombine. Creation depends only on temperature, but recombination is proportional to how many of each there are. Flooding the material with donor electrons makes each hole far more likely to meet an electron, so holes recombine much faster, and the balance settles with far fewer of them, keeping the product $np$ equal to $n_i^2$.
:::
:::

::: practice

::: check
given: Nd = 1e15 | 1e16 | 1e17
answer: Nd
unit: cm^-3
tolerance: 1%

## About how many free electrons are in silicon doped with {Nd} donors per cm³?

::: misses
- [1e20/Nd] That's the holes.
- [any] Each donor gives one electron.
:::
:::

::: check
given: k = 2 | 5 | 10 | 20 | 100 | 1000
answer: 1/k
tolerance: 0.5%

## Doping is raised {k} times (well above $n_i$). By what factor does the resistivity change?

::: misses
- [k] More carriers, lower resistivity.
- [any] $\rho \propto 1/N$.
:::
:::

::: check
kind: choice

## A doped silicon crystal has 10¹⁶ free electrons per cm³. What is its net charge?

- [x] Zero
- [ ] Negative
- [ ] Positive
- [ ] It depends on the temperature

::: right
Right. Each free electron came from a donor atom that's now a positive ion: they balance.
:::

::: misses
- [2] The donor ions balance the electrons.
- [3] Electrons and donor ions are equal in number.
- [4] It's neutral at any temperature.
:::
:::
:::
