Skip to content
Hardware & LaptopAdvanced

What Is a P-N Junction? Understanding P-Type, N-Type Semiconductors, Diodes and How Silicon Technology Creates Computer Memory and Storage

Quick Answer A P-N junction is formed when P-type and N-type semiconductor regions are joined together. P-type silicon has holes as its majority charge carri...

BI
Bison Technical Team Enterprise IT specialists
Updated 03 Nov 2026 17 min read 1 total views
Structured technical guidanceSafety notes included where requiredSources listed below

Quick Answer

A P-N junction is formed when P-type and N-type semiconductor regions are joined together. P-type silicon has holes as its majority charge carriers, while N-type silicon has free electrons as its majority charge carriers. The boundary between these regions creates a depletion region and an internal electric field. This is the operating foundation of a P-N junction diode.

These semiconductor principles are also fundamental to modern computer technology. By controlling electrons, holes and electrical charge inside microscopic silicon structures, engineers manufacture transistors, RAM chips, NAND flash memory and SSD storage devices. Although a P-N junction diode does not itself store computer data, understanding it helps explain the semiconductor technology used to build modern electronic devices.

Advertisement

1. What Is a Semiconductor?

A semiconductor is a material whose electrical conductivity falls between that of a conductor and an insulator. Its conductivity can be controlled through temperature, light, electrical fields and the introduction of selected impurity atoms.

Silicon is the most widely used semiconductor material in conventional computer processors, memory chips and integrated circuits.

Material Electrical behaviour Examples
Conductor Allows current to flow easily. Copper, silver and aluminium.
Insulator Strongly resists electrical current. Glass, rubber and plastic.
Semiconductor Conductivity can be controlled. Silicon, germanium and gallium arsenide.

1.1 Why Is Silicon Used in Computers?

Silicon is a chemical element with atomic number 14. A neutral silicon atom contains 14 protons and 14 electrons. Four of these electrons are valence electrons, meaning they occupy the outermost electron shell.

These four valence electrons allow silicon atoms to form covalent bonds with four neighbouring silicon atoms. The atoms share electrons, producing a regular crystalline structure.

Silicon is useful because its electrical properties can be carefully controlled by introducing selected impurity atoms. This makes it possible to manufacture diodes, transistors and memory devices.

2. Understanding Protons, Neutrons and Electrons

Before understanding semiconductor technology, it is important to understand the basic structure of an atom.

  • Proton: A positively charged particle located inside the atomic nucleus.
  • Neutron: A particle inside the nucleus that has no electrical charge.
  • Electron: A negatively charged particle surrounding the nucleus.

Protons and neutrons form the nucleus, while electrons occupy regions around the nucleus. Electrons are particularly important in semiconductor technology because their movement and energy levels determine how electrical current flows.

2.1 What Are Valence Electrons?

Valence electrons are the electrons in an atom's outermost occupied electron shell. They participate in chemical bonding and determine many of the electrical properties of a material.

Silicon has four valence electrons. In a pure silicon crystal, each atom shares electrons with four neighbouring atoms. This arrangement creates covalent bonds.

At ordinary temperatures, some electrons can gain enough energy to move into the conduction band, where they can participate in electrical conduction.

2.2 What Is a Free Electron?

A free electron in semiconductor physics is an electron that is sufficiently mobile to participate in electrical conduction. It is not necessarily an electron that has escaped completely from the semiconductor material.

When an electric field is applied, mobile electrons move through the semiconductor and contribute to electrical current.

2.3 What Is a Hole in Semiconductor Physics?

A hole is an unoccupied electron state in the valence band of a semiconductor. It behaves like a positively charged mobile carrier.

Consider a simple example:

  1. An electron leaves its original bonding position.
  2. An empty electron state remains behind.
  3. A neighbouring electron moves into that empty position.
  4. The neighbouring electron leaves another empty position behind.
  5. This process continues through the crystal.

As electrons move between bonding positions, the hole appears to move in the opposite direction.

Important: A hole is not a proton. It is an effective positive charge carrier used to describe electron movement inside a semiconductor.

3. What Is Semiconductor Doping?

Doping is the controlled process of introducing a small quantity of selected impurity atoms into a semiconductor crystal to change its electrical properties.

Pure silicon has relatively limited electrical conductivity for many electronic applications. By introducing elements with three or five valence electrons, manufacturers can control the concentration of holes and free electrons.

There are two fundamental types of doped silicon:

  • N-type semiconductor: Contains additional donor electrons. Electrons are the majority charge carriers.
  • P-type semiconductor: Contains acceptor impurities that create holes. Holes are the majority charge carriers.

Doping changes the concentration of mobile charge carriers. It does not normally make the entire semiconductor electrically positive or negative.

4. What Is an N-Type Semiconductor?

An N-type semiconductor is produced by doping silicon with an element that has five valence electrons. Common donor impurities include phosphorus, arsenic and antimony.

4.1 How Does Phosphorus Create N-Type Silicon?

Phosphorus has atomic number 15 and five valence electrons. When a phosphorus atom replaces a silicon atom in the crystal lattice, four of its valence electrons participate in covalent bonding with neighbouring silicon atoms.

The fifth electron is relatively weakly bound and can be released into the conduction band with comparatively little energy.

This additional electron increases the electrical conductivity of the silicon.

4.2 Why Is It Called N-Type?

The letter N refers to negative charge carriers. Electrons are the majority mobile charge carriers in N-type silicon.

Important characteristics include:

  • Phosphorus is a commonly used donor impurity.
  • Free electrons are the majority carriers.
  • Holes are the minority carriers.
  • The semiconductor remains approximately electrically neutral overall.

5. What Is a P-Type Semiconductor?

A P-type semiconductor is produced by doping silicon with an element that has three valence electrons. Common acceptor impurities include boron, aluminium and gallium.

5.1 How Does Boron Create P-Type Silicon?

Boron has atomic number 5 and three valence electrons. When a boron atom replaces a silicon atom in the crystal lattice, it can form three covalent bonds with neighbouring silicon atoms.

The fourth bonding position has an unoccupied electron state. Boron can accept an electron from a neighbouring bond, leaving a hole in the valence band.

This hole behaves as a positive mobile charge carrier.

5.2 Why Is It Called P-Type?

The letter P refers to positive charge carriers. Holes are the majority mobile charge carriers in P-type silicon.

Important characteristics include:

  • Boron is a commonly used acceptor impurity.
  • Holes are the majority carriers.
  • Electrons are the minority carriers.
  • The material remains approximately electrically neutral overall.

6. Difference Between P-Type and N-Type Semiconductors

Feature N-Type P-Type
Common impurity Phosphorus Boron
Impurity function Donor Acceptor
Valence electrons Five Three
Majority carriers Electrons Holes
Minority carriers Holes Electrons
Overall electrical charge Approximately neutral Approximately neutral

7. What Is a P-N Junction?

A P-N junction is the interface between P-type and N-type regions in a semiconductor crystal.

When these regions are joined during semiconductor manufacturing, electrons from the N-type region diffuse towards the P-type region, while holes diffuse towards the N-type region.

Some electrons and holes recombine near the junction. This leaves behind fixed ionised donor atoms on the N side and fixed ionised acceptor atoms on the P side.

These fixed charges create an internal electric field. The region around the junction that has very few mobile charge carriers is called the depletion region.

7.1 How Is the Depletion Region Formed?

  1. The N-type region contains many free electrons.
  2. The P-type region contains many holes.
  3. Electrons diffuse from N-type towards P-type material.
  4. Holes diffuse from P-type towards N-type material.
  5. Electrons and holes recombine near the boundary.
  6. Fixed ionised donor and acceptor atoms remain behind.
  7. The resulting electric field opposes further diffusion.

At thermal equilibrium, diffusion and drift balance each other. The junction therefore develops an internal potential barrier.

7.2 What Is Built-In Potential?

Built-in potential is the electrostatic potential difference that develops across a P-N junction at thermal equilibrium.

Its value depends on the semiconductor material, doping concentrations and temperature.

The commonly quoted approximately 0.7 V for a silicon diode is a practical approximation for forward operation under particular conditions. It is not a universal built-in voltage for every silicon P-N junction.

8. What Is a P-N Junction Diode?

A P-N junction diode is a semiconductor component that allows electrical current to flow much more easily in one direction than in the opposite direction.

It has two terminals:

  • Anode: Connected to the P-type region.
  • Cathode: Connected to the N-type region.

8.1 Forward Bias

A diode is forward-biased when its anode is connected to a more positive voltage than its cathode.

The applied voltage reduces the junction barrier and narrows the depletion region. When the forward voltage is sufficient, substantial current can flow.

A silicon diode commonly has a forward voltage in the approximate 0.6–0.7 V range under certain operating conditions. The actual value depends on current, temperature and the diode design.

8.2 Reverse Bias

A diode is reverse-biased when its anode is connected to a more negative voltage than its cathode.

The depletion region becomes wider and the junction barrier increases. Normally, only a small reverse leakage current flows.

If the reverse voltage exceeds the breakdown voltage, current can increase significantly. Special Zener and avalanche diodes are designed to operate in controlled breakdown conditions. An ordinary diode may be damaged if its ratings are exceeded.

8.3 Forward Bias Versus Reverse Bias

Feature Forward bias Reverse bias
Anode voltage More positive More negative
Depletion region Narrows Widens
Barrier Reduced Increased
Current Can become substantial Normally very small
Application Rectification and conduction Reverse blocking and protection

9. How Does Current Flow Through a Semiconductor?

Electrical current in a semiconductor is carried by both electrons and holes. Their movement is influenced by electric fields and differences in carrier concentration.

9.1 Drift Current

Drift occurs when an electric field causes mobile charge carriers to move. Electrons move opposite to the electric-field direction, while holes move in the same direction as the electric field.

9.2 Diffusion Current

Diffusion occurs when charge carriers move from a region of higher concentration towards a region of lower concentration. This mechanism is particularly important in P-N junction operation.

Conventional current is defined in the direction that positive charge would move. Therefore, electron movement is opposite to conventional current direction.

10. How Do Semiconductors Create Transistors?

Diodes control the direction of current, but modern computers require electronic components that can switch and control electrical signals. These components are called transistors.

A transistor can operate as an electronic switch or amplifier. Modern processors and memory chips contain enormous numbers of microscopic transistors manufactured on silicon wafers.

10.1 Bipolar Junction Transistor (BJT)

A bipolar junction transistor contains three semiconductor regions arranged as NPN or PNP.

It has three terminals:

  • Emitter
  • Base
  • Collector

A small base current can control a larger collector current when the transistor is operated in its appropriate active region. BJTs are used in amplification and switching circuits.

10.2 MOSFET Transistor

A Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) is a voltage-controlled device. Its main terminals are gate, source and drain.

The gate is electrically insulated from the semiconductor channel by a dielectric layer. Applying an appropriate gate voltage controls the formation or conductivity of a channel between source and drain.

MOSFET technology is fundamental to modern processors, digital logic and semiconductor memory.

11. How Do Transistors Help Computers Store Information?

Computers represent information using binary digits called bits. Each bit has one of two logical states: 0 or 1.

Semiconductor memory circuits represent these states through controlled electrical conditions. Depending on the technology, information may be represented by capacitor charge, transistor threshold voltage or other electrical characteristics.

A P-N junction diode does not directly store a computer file. Instead, semiconductor manufacturing combines transistors, capacitors and other structures to create memory cells.

12. How Does RAM Work? Understanding DRAM

Dynamic Random Access Memory (DRAM) is widely used as the main working memory in computers.

A conventional DRAM cell contains:

  • One access transistor.
  • One storage capacitor.

The capacitor stores electrical charge representing a logical state. The transistor controls access to the capacitor.

12.1 How Does a DRAM Cell Store a Bit?

  1. The memory controller selects a memory location using row and column addressing.
  2. The access transistor is activated through its word line.
  3. During writing, the bit-line circuitry charges or discharges the capacitor to represent the required state.
  4. During reading, the capacitor influences the voltage on the bit line.
  5. A sense amplifier detects the small voltage difference and determines the stored state.
  6. The read operation disturbs the stored charge, so the data is restored as part of the operation.

12.2 Why Does DRAM Require Refreshing?

DRAM capacitors gradually lose their stored charge because of leakage. Therefore, the memory controller periodically refreshes memory cells to preserve their information.

DRAM requires power to retain data. When the computer is switched off, its contents are lost. This is why DRAM is called volatile memory.

13. How Does NAND Flash Store Data?

NAND flash is a non-volatile semiconductor memory technology used in SSDs, USB flash drives and memory cards.

Unlike DRAM, NAND flash can retain stored information without continuous electrical power. It achieves this by storing electrical charge in specially designed insulated regions inside memory transistors.

Two important approaches are floating-gate and charge-trap memory technologies.

13.1 Floating-Gate Technology

A floating-gate transistor contains a conductive gate that is electrically isolated by insulating material.

Special programming and erase operations place electrical charge onto or remove charge from this isolated gate. The stored charge changes the transistor's threshold voltage.

The memory controller reads the cell by applying suitable electrical conditions and determining its response.

13.2 Charge-Trap Technology

Charge-trap flash uses an insulating layer containing charge-trapping sites instead of a conductive floating gate.

Electrical charge is retained in these sites, changing the transistor's threshold voltage. This provides another method of storing information without continuous power.

13.3 How Does NAND Represent Binary Data?

Single-Level Cell (SLC) NAND stores one bit per cell using two distinguishable electrical states.

Modern NAND technologies can store multiple bits in one cell by distinguishing several threshold-voltage ranges.

NAND technology Bits per cell Number of states
SLC 1 2
MLC (two-bit) 2 4
TLC 3 8
QLC 4 16

As more bits are stored in one cell, the controller must distinguish more closely spaced voltage states. This increases the importance of accurate programming, error correction and memory management.

14. How Does an SSD Work?

A Solid-State Drive (SSD) combines NAND flash memory chips, a controller, firmware and supporting electronic components.

The SSD controller manages communication with the computer and performs operations such as logical-to-physical address mapping, error correction, wear management and garbage collection.

The basic operation is as follows:

  1. The operating system sends a read or write request to the SSD.
  2. The SSD controller receives and interprets the request.
  3. The controller maps the logical address to the relevant physical NAND location.
  4. For writing, specialised electrical operations program the NAND cells.
  5. For reading, the controller senses the cells' electrical characteristics.
  6. Error-correction mechanisms help detect and correct errors within the capabilities of the memory system.

14.1 Why Does an SSD Retain Data Without Power?

NAND flash uses electrically insulated charge-storage structures. The stored charge changes the transistor's electrical characteristics and can remain after power is disconnected.

However, NAND storage is not permanent in an unlimited sense. Data retention depends on temperature, memory wear, charge leakage and the condition of the cells.

15. Difference Between DRAM and NAND Flash

Feature DRAM NAND Flash
Main purpose Working memory Long-term storage
Storage mechanism Capacitor charge Charge-storage transistor
Typical cell structure One transistor and one capacitor Specialised memory transistor
Continuous power Required for data retention Not required for data retention
Volatility Volatile Non-volatile
Applications Computer RAM SSDs, USB drives and memory cards

16. How Are Semiconductor Chips Manufactured?

Semiconductor manufacturing converts carefully prepared silicon wafers into electronic devices containing microscopic structures.

16.1 Silicon Purification and Crystal Growth

Manufacturers begin with silicon-containing raw materials and use industrial purification processes to obtain high-purity silicon suitable for semiconductor manufacturing.

The silicon is formed into a single-crystal ingot using controlled crystal-growth techniques. The ingot is sliced into thin circular wafers, which are polished and cleaned.

16.2 Oxidation and Thin-Film Deposition

Manufacturers grow or deposit insulating, conductive and semiconductor films on the wafer. These layers help form transistor gates, isolation structures and electrical connections.

16.3 Photolithography

Photolithography transfers extremely small patterns onto the wafer using light-sensitive photoresist and patterned masks or reticles.

  1. Photoresist is applied to the wafer.
  2. A patterned reticle is used to expose selected areas.
  3. Light changes the properties of the exposed photoresist.
  4. A development process removes selected portions.
  5. The remaining pattern guides subsequent manufacturing operations.

16.4 Etching

Etching selectively removes material from specific wafer regions. Depending on the process, manufacturers use wet chemical etching or plasma-based dry etching.

16.5 Doping and Ion Implantation

Doping can be introduced through diffusion or ion implantation.

During ion implantation, electrically charged impurity atoms are accelerated and directed into selected wafer regions. Thermal processing is then used to activate the dopants and repair implantation-related crystal damage as required.

By controlling impurity type, concentration and placement, manufacturers create the P-type and N-type regions needed for semiconductor devices.

16.6 Repeated Layer Formation

Chip manufacturing requires many repeated operations involving deposition, lithography, etching, doping, cleaning and thermal processing. These operations build the required semiconductor structures layer by layer.

16.7 Metallisation and Interconnections

Conductive materials are used to create electrical connections between transistors and other circuit components. Multiple interconnection layers allow signals and power to move throughout the chip.

16.8 Testing and Packaging

Manufactured wafers undergo electrical testing. Individual dies are separated from the wafer, tested and packaged to protect the semiconductor and provide external electrical connections.

These packaged chips are subsequently used in processors, RAM modules, SSDs and other electronic devices.

17. How Do Billions of Transistors Become a Computer?

Individual transistors perform relatively simple electrical functions. When connected together into carefully designed circuits, they can perform complex operations.

  • Logic gates: Perform Boolean operations such as AND, OR and NOT.
  • Flip-flops: Store individual bits using feedback circuits.
  • Registers: Hold temporary information inside processors.
  • Memory arrays: Organise memory cells into addressable structures.
  • Processors: Combine arithmetic, logic, control and data-processing circuits.

These interconnected circuits allow computers to process instructions, move information and store binary data.

18. Does Every Semiconductor Memory Device Use a P-N Junction?

No. P-N junctions are fundamental to many semiconductor devices, but not every memory cell stores information using a P-N junction.

  • A conventional diode uses a P-N junction to control current.
  • A bipolar junction transistor uses two P-N junctions.
  • A MOSFET uses an insulated gate to control a semiconductor channel.
  • A DRAM cell uses a transistor and capacitor to store a bit.
  • A NAND flash cell uses a charge-storage transistor to retain information.

The common foundation is semiconductor physics and the controlled movement or retention of electrical charge. Different semiconductor structures use these principles for different purposes.

19. Frequently Asked Questions

Is a hole the same as a proton?

No. A hole is an unoccupied electron state in a semiconductor. It behaves like a positive charge carrier but is not a proton.

Why does phosphorus create N-type silicon?

Phosphorus has five valence electrons. Four participate in bonding with neighbouring silicon atoms, while the fifth can become a mobile conduction electron.

Why does boron create P-type silicon?

Boron has three valence electrons. It acts as an acceptor impurity, creating an unoccupied electron state that behaves as a hole.

Does P-type silicon have a positive electrical charge?

No. P-type silicon remains approximately electrically neutral overall. Holes are its majority mobile charge carriers.

Does a P-N junction always allow electricity to flow in only one direction?

A conventional diode conducts much more readily in forward bias than in reverse bias. However, reverse leakage and breakdown current are possible.

Is every transistor made using a P-N junction?

No. Bipolar junction transistors use P-N junctions directly. MOSFETs use an insulated gate to control a semiconductor channel.

Does RAM use the same technology as SSD storage?

No. Conventional DRAM stores information using capacitor charge and access transistors. NAND flash stores information using charge-storage transistor structures.

Why does an SSD retain information when power is disconnected?

NAND flash stores electrical charge in insulated structures that can retain their programmed state without continuous power.

20. Important Semiconductor Concepts at a Glance

Concept Meaning Role in Computing
Silicon Semiconductor with four valence electrons. Base material for most computer chips.
Proton Positively charged atomic particle. Determines atomic number.
Electron Negatively charged particle. Responsible for electronic conduction.
Hole Unoccupied electron state. Positive charge carrier in P-type silicon.
Doping Adding selected impurity atoms. Controls conductivity.
Phosphorus Donor impurity with five valence electrons. Creates N-type silicon.
Boron Acceptor impurity with three valence electrons. Creates P-type silicon.
P-N junction Interface between P-type and N-type regions. Foundation of semiconductor diodes.
Diode Device controlling current direction. Rectification and circuit protection.
Transistor Device controlling electrical signals. Switching and digital processing.
DRAM Memory based on capacitor charge. Temporary working memory.
NAND flash Non-volatile charge-storage memory. SSDs and USB storage.

21. Complete Connection: From Silicon to Computer Storage

The following sequence connects atomic physics to the storage technology used in modern computers:

  1. Atoms: Silicon atoms contain four valence electrons.
  2. Crystal formation: Silicon atoms form covalent bonds in a regular crystal structure.
  3. Doping: Phosphorus and boron modify the electrical properties of selected silicon regions.
  4. Semiconductor regions: Doping produces N-type and P-type silicon.
  5. Junction formation: P-N junctions develop depletion regions and internal electric fields.
  6. Device manufacturing: Carefully engineered structures create diodes and transistors.
  7. Integrated circuits: Large numbers of transistors are interconnected to perform complex functions.
  8. Memory manufacturing: Specialised transistors and capacitors form memory cells.
  9. Binary storage: Electrical states represent the 0s and 1s used by computers.
  10. Storage products: Memory cells are organised into RAM chips, NAND flash chips and SSDs.

The fundamental connection between atomic physics, semiconductor engineering and computer technology is the ability to control electrons and electrical charge inside extremely small structures. This ability makes modern processors, high-capacity memory chips and compact SSD storage possible.

Sources

YOUR FEEDBACK

Was this guide useful?

Your answer helps us keep BISONKB accurate and practical.

Links are permitted only to published BISONKB articles.
THE BISON BRIEF

Practical IT knowledge, once a week.

New troubleshooting guides, scripts and infrastructure notes. No noise.

By subscribing, you agree to our privacy policy. Unsubscribe at any time.