Computational physics is the branch of physics that uses numerical algorithms, mathematical models, and computer simulations to solve problems that cannot be addressed by purely analytical methods. It sits at the intersection of theoretical physics, applied mathematics, and computer science, but its identity is defined by a specific goal: to produce quantitative predictions about physical systems by translating the laws of physics into computational form. Unlike experimental physics, it does not directly measure nature; unlike purely theoretical physics, it does not stop at deriving equations. Computational physics operates in the space between, where the equations of a theory are too complex to solve exactly, and the only practical route to a prediction is through computation.
The foundational challenge of computational physics is that the equations governing most physical systems—whether the Schrödinger equation in quantum mechanics, the Navier–Stokes equations in fluid dynamics, or the Einstein field equations in general relativity—are analytically solvable only in highly idealized cases. A single particle in a simple potential, a harmonic oscillator, or a spherically symmetric gravitational field can be treated with pencil and paper. But add a second interacting particle, a non-uniform medium, or a complex boundary shape, and the equations typically become intractable. The central question of computational physics is therefore: How can we obtain reliable, quantitative answers from the laws of physics when exact solutions are impossible?
This question has several sub-questions that organize the field. How do we approximate continuous equations as discrete operations that a computer can perform? How do we control the errors introduced by that discretization? How do we handle systems with enormous numbers of degrees of freedom, such as a gas containing 10²³ molecules, where tracking every particle is impossible? How do we extract meaningful physical insight from the massive datasets that simulations produce? And how do we know when a simulation result is trustworthy—when it reflects the physics of the model rather than an artifact of the numerical method?
The practice of using numerical methods to solve physics problems predates the electronic computer. In the nineteenth and early twentieth centuries, astronomers and physicists used hand calculations, mechanical calculators, and clever approximation schemes to compute planetary orbits, solve differential equations, and evaluate integrals. The term "computational physics" did not exist, and these efforts were seen as applied mathematics or numerical analysis. The connection to modern computational physics is direct but careful: these precursors established the mathematical techniques—finite differences, numerical integration, iterative methods—that the field would later inherit, but they did not constitute a distinct discipline.
The field as a recognized enterprise emerged with the development of electronic computers during and after World War II. The Manhattan Project and postwar military research created the first large-scale scientific computing facilities, and physicists quickly realized that these machines could tackle problems previously beyond reach. Early applications included neutron transport in nuclear weapons, shock wave propagation, and weather prediction. By the 1960s and 1970s, as computers became faster and more accessible, computational methods spread across physics subfields. The 1980s and 1990s saw the rise of powerful general-purpose techniques—molecular dynamics, Monte Carlo methods, lattice gauge theory—that could be applied to diverse problems. Today, computational physics is not a niche specialty but a standard tool used across all of physics, from particle physics to cosmology to biophysics.
The field is not organized around a single method but around several families of techniques, each suited to different types of problems. These approaches are not rival schools that compete for dominance; they are complementary tools, and many research projects combine them.
The most direct approach to solving partial differential equations is to replace continuous derivatives with discrete approximations. In the finite difference method, a continuous domain is divided into a grid, and derivatives at grid points are approximated by differences between neighboring points. This converts a differential equation into a system of algebraic equations that can be solved numerically. The finite element method, developed later and widely used in engineering and solid mechanics, divides the domain into small, irregularly shaped elements and approximates the solution as a combination of simple functions on each element. This allows greater flexibility in handling complex geometries.
These methods are the workhorses of computational physics for problems described by field equations: fluid flow, heat conduction, electromagnetic waves, elasticity, and many others. Their central limitation is the trade-off between accuracy and computational cost. A finer grid gives more accurate results but requires more memory and computation time. The art of using these methods lies in choosing the right grid resolution, boundary conditions, and numerical scheme to balance accuracy against feasibility.
For systems of interacting particles—atoms, molecules, or colloidal particles—molecular dynamics simulates the motion of each particle by numerically integrating Newton's equations of motion. Given an interatomic potential that describes how particles attract or repel each other, the method computes the force on each particle, updates its velocity and position over a small time step, and repeats the process millions or billions of times. This produces a trajectory of the system's evolution that can be analyzed to extract thermodynamic properties, transport coefficients, structural information, and dynamical behavior.
Molecular dynamics is widely used in condensed matter physics, chemistry, and biophysics. Its power lies in its conceptual simplicity and its ability to capture the full complexity of many-body interactions. Its limitations are equally clear: the results are only as good as the interatomic potential, which is always an approximation to the true quantum-mechanical interactions; the time steps must be small enough to resolve the fastest motions in the system, which limits the total simulation time; and the number of particles that can be simulated is typically far smaller than real systems, requiring careful attention to finite-size effects.
Monte Carlo methods use random sampling to compute quantities that are difficult to evaluate deterministically. The name comes from the casino in Monaco, reflecting the central role of randomness. In statistical physics, Monte Carlo methods are used to sample configurations of a system according to their Boltzmann probability distribution, allowing the computation of thermodynamic averages without enumerating all possible states. The Metropolis algorithm, developed in the 1950s, is the most famous of these methods: it generates a sequence of configurations by proposing random changes and accepting or rejecting them based on the change in energy, ensuring that the sequence samples the correct distribution.
Monte Carlo methods are also used for numerical integration in high-dimensional spaces, where traditional quadrature methods fail. The key insight is that the error of a Monte Carlo estimate decreases as the inverse square root of the number of samples, independent of the dimensionality of the problem. This makes Monte Carlo the method of choice for problems with many dimensions, such as path integrals in quantum mechanics or the evaluation of Feynman diagrams in particle physics. The main limitation is statistical: results come with random errors that can be reduced only by increasing the sample size, which can be computationally expensive.
Some of the most profound applications of computational physics involve discretizing not just space but also the underlying theory itself. Lattice gauge theory, developed in the 1970s, formulates quantum chromodynamics—the theory of the strong nuclear force—on a discrete grid of spacetime points. This allows the theory to be studied non-perturbatively, meaning without assuming that the interactions are weak. The method has been essential for computing the masses of hadrons (particles made of quarks) and for understanding the confinement of quarks inside protons and neutrons.
Lattice methods are computationally demanding, requiring some of the largest supercomputers in the world. They illustrate a distinctive feature of computational physics: sometimes the computation is not just a way to solve an existing theory but a way to explore a theory that cannot be handled by any other means. The lattice formulation is not merely a numerical trick; it is a different way of defining the theory itself, one that is mathematically rigorous and amenable to computation.
For quantum systems with many electrons, such as atoms, molecules, and solids, density functional theory (DFT) provides a way to compute ground-state properties without tracking every electron individually. The key idea, for which Walter Kohn received the Nobel Prize in Chemistry in 1998, is that the ground-state energy of a many-electron system is a functional of the electron density—a function that maps the spatial distribution of electrons to the energy. In principle, this reduces a problem with 3N variables (where N is the number of electrons) to a problem with just 3 variables (the spatial coordinates).
In practice, the exact functional is unknown, and DFT relies on approximations, most commonly the local density approximation and the generalized gradient approximation. These approximations work remarkably well for many materials, making DFT the dominant method in computational materials science and quantum chemistry. However, they fail for systems with strong electron correlations, such as some transition metal oxides and high-temperature superconductors, and the search for better functionals remains an active research area.
Underlying all these methods is the discipline of numerical analysis, which studies the accuracy, stability, and efficiency of computational algorithms. A computational physicist must understand how errors propagate through a calculation, whether a numerical scheme will produce spurious oscillations or instabilities, and how to choose an algorithm that converges to the correct answer. This is not a separate approach but a shared foundation. The distinction between computational physics and numerical analysis is one of emphasis: numerical analysts study algorithms for their own sake, while computational physicists use algorithms to answer physical questions and must judge whether the numerical results are physically meaningful.
A central concern of modern computational physics is establishing the credibility of simulation results. Verification asks whether the code correctly solves the equations it claims to solve—whether the numerical solution converges to the exact solution of the mathematical model as the grid is refined or the time step is reduced. Validation asks whether the mathematical model itself accurately represents the physical system—whether the simulation results agree with experimental measurements. Both are essential, and a simulation can pass one while failing the other.
Uncertainty quantification goes further, asking how uncertainties in input parameters, model approximations, and numerical errors propagate to uncertainties in the final predictions. This is particularly important when simulations are used to make decisions, such as in climate modeling, nuclear safety, or drug design. The field has developed sophisticated methods for propagating uncertainties, including sensitivity analysis, surrogate modeling, and Bayesian inference, but these remain active areas of research rather than settled practice.
Computational physics today is characterized by several trends. The first is the increasing scale of computation: supercomputers with millions of cores allow simulations of unprecedented size and detail, from the formation of galaxies to the folding of proteins. The second is the integration of machine learning, which is being used to accelerate simulations, to construct surrogate models that replace expensive calculations, and to extract patterns from simulation data. These uses are promising but still developing, and their reliability is an active area of investigation.
The third trend is the growing importance of computational physics as a bridge between theory and experiment. In many fields, simulations are now accurate enough to make predictions that guide experimental design, to interpret experimental results, and to test theoretical models in regimes where analytical calculations are impossible. This has made computational physics an integral part of the scientific enterprise rather than a supplementary tool.
The field's enduring questions remain the same as they were at its founding: how to approximate continuous physics with discrete computation, how to control errors, and how to extract reliable physical insight from numerical results. What has changed is the scale and sophistication of the answers. The methods described here—finite difference, molecular dynamics, Monte Carlo, lattice methods, density functional theory—are not competing paradigms but complementary tools, each suited to a particular class of problems. A working computational physicist typically masters several of them and chooses the appropriate one for the question at hand. The field's unity lies not in a single method but in a shared commitment to the idea that computation is a legitimate and powerful way to do physics.