In our last lesson, we developed a qualitative picture of how a PN junction reaches equilibrium. We saw that the initial diffusion of carriers creates a depletion region with a built-in electric field. This field produces a drift current that perfectly opposes the diffusion current, leading to a state of dynamic balance with zero net current.
Today, we will build directly on that foundation to achieve a key goal in your study of microelectronics: deriving the expression for the built-in potential from first principles. This is a crucial step, as it quantifies the potential barrier that governs the junction's behavior. Your specific interest in the mathematical underpinnings of electronics will be well-served here, as we'll explore this from three complementary perspectives, starting with the one favored by Professor Razavi.
Derivation 1: The Current Balance Equation
The most direct way to find the built-in potential, , is to start from the equilibrium condition we established: the drift current must exactly cancel the diffusion current for each type of carrier. If we write this relationship mathematically, we can solve for the voltage that must exist to enforce this balance.
Professor Razavi provides a clear, step-by-step derivation using this principle. This method elegantly connects the concepts of drift, diffusion, and the Einstein relation to arrive at the final expression.
Razavi Electronics 1, Lec 4, PN Junction in Equilibrium & Reverse Bias
Watch this segment from Professor Razavi's lecture. He formalizes the equilibrium condition and integrates it to find the built-in potential.
Focus on the mathematical derivation starting from this point. Pay close attention to these key steps: Setting up the equation: He equates the expressions for hole drift current and hole diffusion current. Separating variables: The equation is rearranged to prepare it for integration. Integration: He integrates across the depletion region, relating the integral of the electric field to the potential difference, V_0. Applying the Einstein Relation: The ratio of the diffusion constant to mobility, D/\mu, is replaced by the thermal voltage, kT/q. Final Result: He substitutes the hole concentrations at the boundaries (N_A and n_i^2/N_D) to get the final formula for V_0.
Let's summarize the elegant result you just saw derived. By demanding that the net hole current (or electron current) be zero at equilibrium, we find that a specific potential difference must exist across the junction. This built-in potential, , is given by:
Here, is Boltzmann's constant, is the absolute temperature, is the elementary charge, and are the acceptor and donor doping concentrations, and is the intrinsic carrier concentration. The term is often called the thermal voltage, , which is approximately 26 mV at room temperature.
Derivation 2: The Energy Band Perspective
Another powerful way to understand the built-in potential is by looking at the energy band diagram of the junction. As you know from your interest in physics, energy diagrams are a fundamental tool for visualizing the state of a system.
When the p-type and n-type materials are separate, their Fermi levels, , are at different positions. When they are joined, charge flows until the entire system reaches equilibrium, which is characterized by a single, constant Fermi level throughout the device. To make this happen, the energy bands in the n-type and p-type regions must shift relative to each other. This shift creates the "band bending" across the junction.

The amount of band bending is directly related to the built-in potential. The potential energy of an electron is , so a change in electrostatic potential across the junction results in a potential energy difference of in the band diagram. This is the energy barrier that an electron from the n-side would need to overcome to diffuse to the p-side.
We can derive the same formula for from this perspective.
This document from TU Delft provides a concise derivation based on the energy band diagram.
Please read the short section starting from this point. The key idea is to express the total potential energy barrier, qV_{bi}, as the sum of the energy differences between the Fermi level and the band edges in the neutral n- and p-regions.
This approach reinforces that the built-in potential is the exact voltage required to align the Fermi levels across the junction. Both the current-balance method and the energy-band method give the same fundamental result, providing a robust check on our understanding.
Derivation 3: The Electrostatic Approach
Finally, let's connect the derivation back to fundamental electrostatics, which is something you would have encountered in your physics and engineering courses. In the previous lesson, we saw the plots of charge density, electric field, and potential. These are linked by Poisson's equation. By starting with the charge distribution, we can integrate twice to find the potential.
- Start with Charge Density (): We use the depletion approximation, which models the space charge as two rectangular blocks of fixed ions: negative acceptors () on the p-side and positive donors () on the n-side.
- Integrate to find Electric Field (): Using , we find that the electric field has a triangular profile, peaking at the metallurgical junction and going to zero at the edges of the depletion region.
- Integrate to find Potential (): Using , we find the potential profile. The total change in potential across the junction is the built-in potential, . This integral is simply the area under the triangular E-field plot.
This process is carried out in detail in the same TU Delft document.
This section details the derivation starting from the charge distribution.
Read from the beginning of section "The presence of the internal electric field". Follow the steps of integrating the charge density (Eq. 8.3) to get the electric field (Eq. 8.7), and then integrating the electric field to get the potential, which finally yields an expression for the built-in voltage (Eq. 8.13).
Notice that this method gives an expression for in terms of the depletion region widths ( and ):
While this doesn't directly give from doping alone, it is a fundamentally important relationship. In practice, we use the formula from the first two derivations to find , and then use this electrostatic relationship to find the depletion width, a topic we will explore later.
A Practical Example
Let's solidify this by calculating a typical value for the built-in potential. The resource you just read provides a worked example.
Let's apply the formula.
Focus on the calculation shown in the example section. A silicon junction is formed with N_A = 10^{16} \text{ cm}^{-3} and N_D = 10^{18} \text{ cm}^{-3}. At room temperature (T=300 K), n_i \approx 1.5 \times 10^{10} \text{ cm}^{-3} and V_T \approx 0.0258 V. See how these values are plugged into the equation to find V_{bi}.
Plugging the numbers into our formula:
As Professor Razavi also points out, typical values for the built-in potential in silicon diodes are in the range of 0.7 V to 0.9 V.
Conclusion
In this lesson, we have rigorously derived the expression for the built-in potential of a PN junction. This is a cornerstone equation in semiconductor physics, and understanding its origin is essential for analyzing any junction-based device.
Here are the key takeaways:
- The built-in potential is determined by temperature and the doping concentrations on both sides of the junction.
- The fundamental formula is .
- This formula can be derived from three different but consistent physical arguments:
- Balancing drift and diffusion currents at equilibrium.
- Aligning the Fermi levels in the energy band diagram.
- Integrating the charge distribution using Poisson's equation.
- For typical silicon devices, is in the range of 0.7 V to 0.9 V.
Now that we have established the key physical concepts and derived the central equations for the PN junction at equilibrium, our next two lessons will be dedicated to what you've been looking forward to: solving practice problems. We will apply the mass-action law, the drift and diffusion current equations, and the formula for built-in potential to analyze concrete scenarios.