Skip to main content
ScotlandPhysicsSyllabus dot point

How does doping create p-type and n-type semiconductors, and how does a p-n junction work in a diode or LED?

Conductors, insulators and semiconductors, n-type and p-type doping, the p-n junction diode, and the operation of LEDs and photodiodes.

An SQA Higher Physics answer on semiconductors and p-n junctions, covering conductors, insulators and semiconductors, n-type and p-type doping, the p-n junction diode, and the operation of LEDs and photodiodes.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this key area is asking
  2. Conductors, insulators and semiconductors
  3. n-type and p-type doping
  4. The p-n junction diode
  5. LEDs and photodiodes
  6. Examples in context
  7. Try this

What this key area is asking

The SQA wants you to distinguish conductors, insulators and semiconductors by their conduction, explain how n-type and p-type doping create charge carriers, describe how a p-n junction acts as a one-way diode, and explain the operation of an LED and a photodiode in terms of photons and electron-hole pairs.

Conductors, insulators and semiconductors

Pure silicon has each atom bonded to four neighbours, so its outer electrons are tied up in bonds and few are free to move. This is why a controlled impurity is added to make it useful in electronics.

n-type and p-type doping

The majority carriers are electrons in n-type and holes in p-type. Because doping massively increases the number of mobile carriers, even a tiny doping fraction transforms an insulating crystal into a useful semiconductor.

The p-n junction diode

When p-type and n-type materials are joined, electrons from the n-side and holes from the p-side combine near the boundary, leaving a thin region with no free carriers called the depletion layer. This layer sets up an internal electric field that opposes further crossing.

LEDs and photodiodes

A light-emitting diode (LED) is a p-n junction run in forward bias. As electrons cross the junction and recombine with holes, each electron drops to a lower energy state and the released energy comes out as a photon. The photon energy equals the band gap, so E=hfE = hf sets the colour of the light.

A photodiode runs the process in reverse: incoming photons with enough energy create electron-hole pairs in the depletion layer, and these carriers produce a current. In photovoltaic mode the device generates its own emf from light (a solar cell); in photoconductive mode the light changes its conductivity so it acts as a fast light sensor.

Examples in context

The LEDs in phone screens, traffic lights and torches are forward-biased p-n junctions whose colour is fixed by the band gap of the semiconductor used. Solar panels on a roof are large arrays of photodiodes in photovoltaic mode, turning sunlight directly into an emf. A rectifier in a power supply uses diodes to convert AC to DC by passing current only on the half-cycles of one polarity. Camera sensors and barcode scanners use photodiode arrays to convert light patterns into electrical signals. In every case the one-way junction behaviour, and the swapping of energy between electrons and photons, is doing the work.

Try this

Q1. State the majority charge carrier in a p-type semiconductor. [1 mark]

  • Cue. Holes (positive charge carriers).

Q2. State the bias direction in which a diode conducts. [1 mark]

  • Cue. Forward bias (p-side to the positive terminal).

Q3. Explain why an LED emits a photon when it conducts. [2 marks]

  • Cue. An electron recombines with a hole at the junction, dropping to a lower energy level, and releases the energy difference as a photon of energy E=hfE = hf.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

SQA Higher 20183 marksExplain what is meant by n-type and p-type doping of a pure semiconductor, and describe how a p-n junction allows current to pass in one direction only.
Show worked answer →

Doping adds a small amount of impurity to a pure (intrinsic) semiconductor to change its conductivity. n-type doping adds atoms with an extra outer (valence) electron, giving free negative charge carriers (electrons). p-type doping adds atoms with one fewer outer electron, giving positive charge carriers called holes.

At a p-n junction, electrons and holes combine near the boundary forming a depletion layer with no free carriers. When forward biased (p-side to positive terminal) the layer narrows and current flows; when reverse biased the layer widens and almost no current flows. So the junction conducts in one direction only and acts as a diode.

Markers reward correct identification of electrons as n-type carriers and holes as p-type carriers, and a clear forward and reverse bias explanation.

SQA Higher 20223 marksA light-emitting diode (LED) emits photons of light when it conducts. State the energy change that produces the light, and explain why an LED only emits light when connected with a particular polarity.
Show worked answer →

Energy change: when an electron in the conduction region crosses the junction and recombines with a hole, it drops to a lower energy level and the lost energy is emitted as a photon of light. The photon energy equals the band gap of the semiconductor, E=hfE = hf.

Polarity: an LED is a p-n junction diode, so it only conducts when forward biased (p-side to the positive terminal). Reverse biased, the depletion layer widens, no current flows, no recombination occurs and no light is emitted.

Markers reward identifying electron-hole recombination releasing a photon, linking photon energy to the band gap, and explaining the one-way (forward bias) conduction.

Related dot points

Sources & how we know this