Electromagnetism

Semiconductors

Silicon, germanium, etc. — materials with conductivity between conductors and insulators

Semiconductors are materials with conductivity between metals (conductors) and insulators. Silicon (Si) is by far the most common — used in essentially all modern electronics. Doping with small amounts of other elements (phosphorus, boron) creates n-type or p-type semiconductors. Combined into junctions (p-n diodes, transistors), they form the basis of computers, smartphones, solar panels, LEDs.

  • Resistivity10⁻⁵ to 10⁹ Ω·m (between metals and insulators)
  • Most commonSilicon (Si); also germanium (Ge), gallium arsenide (GaAs)
  • DopingAdd impurities to control carrier type and density
  • n-typeDoped with donors (P, As); excess electrons
  • p-typeDoped with acceptors (B, Al); "holes" act as positive carriers
  • BandgapSi ≈ 1.1 eV; GaAs ≈ 1.4 eV; InGaN (LED blue) ≈ 2.7 eV

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

Conductors, insulators, semiconductors

Materials' electrical conductivity depends on availability of free charge carriers:

Material typeResistivity (Ω·m)Carriers at room T
Conductor (metal)~10⁻⁸Lots of free electrons (overlapping bands)
Semiconductor10⁻⁵ to 10⁹Few free; bandgap ~1-2 eV
Insulator> 10¹⁰Almost none; bandgap > 4 eV

Band theory

Atoms' electrons occupy energy levels. In a solid, levels broaden into bands:

  • Valence band — filled with electrons in covalent bonds.
  • Conduction band — empty (or partially filled), where electrons can move freely.
  • Bandgap — energy region between valence and conduction; electrons can't have these energies.
MaterialBandgap (eV)Application
Diamond5.5Insulator
SiC (silicon carbide)2.2-3.3High-power, high-T electronics
GaN (gallium nitride)3.4Blue LEDs, RF power
GaP (gallium phosphide)2.3Green/red LEDs
GaAs (gallium arsenide)1.4Solar cells, RF amplifiers
Silicon1.1Computers, most electronics
Germanium0.67Old transistors; IR detectors
InSb (indium antimonide)0.17IR sensors
HgCdTe0 to 1.5 (tunable)Multi-band IR cameras

Doping creates n- and p-type

TypeDopant atomsCarrierExamples
n-typeGroup V (P, As, Sb)Electrons (negative)5 outer electrons; 1 extra → conduction
p-typeGroup III (B, Al, Ga)Holes (positive)3 outer electrons; missing 1 → "hole"

Doping levels typical: 10¹⁵-10²⁰ atoms/cm³ (1 dopant per 10⁶ to 10⁹ Si atoms).

Common semiconductor devices

DeviceStructureFunction
DiodeSingle p-n junctionOne-way current valve
BJT (bipolar transistor)NPN or PNPAmplifier or switch
MOSFETMetal-Oxide-Semiconductor FETVoltage-controlled current; basis of CPUs
Solar cellp-n junction with light absorptionLight → electricity
LEDp-n junction in direct-bandgap materialElectricity → light
PhotodetectorReverse-biased p-nLight → electrical signal
ThermistorDoped semiconductorTemperature sensor (R varies with T)

JavaScript — semiconductor calculations

// Photon wavelength corresponding to bandgap
function bandgapToWavelength(E_eV) {
  // E = hc/λ → λ = hc/E. h = 6.626e-34, c = 3e8, e = 1.602e-19
  return 6.626e-34 * 3e8 / (E_eV * 1.602e-19);
}

console.log(`Si (1.1 eV): ${(bandgapToWavelength(1.1) * 1e9).toFixed(0)} nm`);  // ~1127 nm (IR)
console.log(`GaAs (1.4 eV): ${(bandgapToWavelength(1.4) * 1e9).toFixed(0)} nm`); // 886 (near IR)
console.log(`GaN (3.4 eV): ${(bandgapToWavelength(3.4) * 1e9).toFixed(0)} nm`);  // 365 (UV)

// LED color from semiconductor bandgap
function ledColor(bandgap_eV) {
  const lambda_nm = bandgapToWavelength(bandgap_eV) * 1e9;
  if (lambda_nm < 380) return 'UV';
  if (lambda_nm < 450) return 'violet';
  if (lambda_nm < 495) return 'blue';
  if (lambda_nm < 570) return 'green';
  if (lambda_nm < 590) return 'yellow';
  if (lambda_nm < 620) return 'orange';
  if (lambda_nm < 750) return 'red';
  return 'IR';
}

console.log(`AlGaInP (2.0 eV): ${ledColor(2.0)}`); // red

// Diode I-V relation (Shockley equation)
function diodeCurrent(V_diode, I_s = 1e-12, T_K = 300) {
  // I = I_s · (exp(qV/kT) - 1)
  const k = 1.380649e-23;
  const e = 1.602e-19;
  return I_s * (Math.exp(e * V_diode / (k * T_K)) - 1);
}

console.log(`Diode at 0.6V: ${(diodeCurrent(0.6) * 1000).toFixed(2)} mA`);  // significant
console.log(`Diode at 0.5V: ${(diodeCurrent(0.5) * 1e6).toFixed(2)} µA`);  // small
console.log(`Diode at -0.5V: ${diodeCurrent(-0.5).toExponential(2)} A`);   // tiny (reverse)

// Thermal voltage at T
function thermalVoltage(T_K = 300) {
  const k = 1.380649e-23;
  const e = 1.602e-19;
  return k * T_K / e;
}

console.log(`V_T at 300K: ${thermalVoltage(300).toFixed(4)} V`);  // 0.0259 V (~26 mV)

// Carrier concentration ratio (n × p = n_i² for intrinsic)
function intrinsicCarrierConcentration(bandgap_eV, T_K = 300, m_eff_factor = 1) {
  // Rough estimate: n_i ~ T^(3/2) · exp(-E_g/(2kT))
  // For Si at 300K, n_i ≈ 1.5 × 10¹⁰ /cm³
  const k = 1.380649e-23;
  const E_g = bandgap_eV * 1.602e-19;
  return 4.83e15 * m_eff_factor * Math.pow(T_K, 1.5) * Math.exp(-E_g / (2 * k * T_K));
}

console.log(`Intrinsic Si at 300K: ${intrinsicCarrierConcentration(1.1).toExponential(2)} /cm³`);

Where semiconductors matter

  • Computing. Every CPU, GPU, RAM, storage uses billions of MOSFETs.
  • Power electronics. Inverters, converters in solar/wind/EV/grid use IGBTs, MOSFETs, SiC, GaN.
  • Sensors. Photodiodes (cameras), thermistors (T sensors), pressure sensors, accelerometers.
  • Lighting. LEDs replacing incandescent (efficiency 5× to 10×).
  • Solar cells. All photovoltaic panels are semiconductor based.
  • Communications. RF transistors in radios, cell phones, WiFi.
  • Quantum. Quantum computers being developed using semiconductor qubits (silicon, GaAs).

Common mistakes

  • Treating semiconductors as ohmic. Diodes and transistors have non-linear I-V; don't apply V=IR directly.
  • Ignoring temperature. Semiconductor conductivity strongly T-dependent (more carriers at higher T). Different from metals (less conductivity at higher T).
  • Forgetting bandgap drives behavior. Almost everything (LED color, solar wavelength, transistor speed) traces to bandgap.
  • Confusing electron and hole motion. "Holes" are absences of electrons that move opposite to electrons; treated as positive carriers.
  • Treating doping as free. Excess doping creates defects, reduces carrier mobility. Optimal doping density chosen carefully.
  • Mixing direct and indirect bandgap. Direct bandgap (GaAs) — efficient for light emission/absorption (LEDs, lasers). Indirect (Si) — needs phonon for transition; less efficient for light. Affects device choice.

Frequently asked questions

Why are semiconductors so important?

They allow precise control of current via small voltages — that's the basis of transistors and integrated circuits. Modern computers, smartphones, communications, sensors — essentially all electronics — use semiconductors. Silicon's bandgap (1.1 eV) is right for room-temperature operation, and silicon is abundant, easily purified, easily doped.

What's the bandgap?

Energy gap between valence band (filled with electrons) and conduction band (empty, free for current). At T=0, no current. At room T, some electrons get thermal energy &gt; bandgap → conduct. Smaller bandgap = more thermal carriers, higher conductivity. Pure Si has bandgap 1.1 eV; insulators have larger (diamond ~5.5 eV); metals have overlapping bands (no gap).

How does doping work?

Add small amounts of foreign atoms (typically 1 in 10⁶ to 10⁹). Group V atoms (P, As) have one extra electron — donate to conduction band → n-type semiconductor. Group III atoms (B, Al) have one fewer electron → "hole" forms in valence band, acts like positive charge → p-type. By controlling doping, you control conductivity and carrier type.

How does a p-n junction work?

Junction of p-type and n-type silicon. At the boundary, electrons from n-side diffuse into p-side and vice versa, creating "depletion region" with built-in electric field. Forward bias (p+, n−): voltage overcomes depletion field; current flows. Reverse bias: depletion region grows, blocks current. This is a diode — one-way valve for current.

How does a transistor work?

Bipolar transistor — three layers (NPN or PNP). Small base current controls large collector-emitter current. Field-effect transistor (FET, MOSFET) — gate voltage creates channel between source and drain; channel conductivity depends on gate. Modern processors use billions of FETs at nanometer scale (5 nm in 2024 high-end chips).

How do solar cells convert light to electricity?

Photon absorbed in semiconductor → electron promoted from valence to conduction band, creating electron-hole pair. P-N junction's built-in field separates them — electrons flow one way, holes the other. External circuit captures this flow. Energy efficient if photon energy slightly above bandgap (just enough to promote, not too much wasted as heat).

How do LEDs produce light?

Reverse of solar cell — apply voltage, electrons and holes recombine across junction → emit photon. Wavelength = bandgap (E = hc/λ). Different bandgap → different color. GaAs (1.4 eV) → IR; AlGaAs (1.8 eV) → red; GaN (3.4 eV) → blue. LED efficiency ~50% (vs incandescent ~5%), much more durable.