An atomic force microscope works by dragging or vibrating an extraordinarily sharp tip across a surface and measuring how much that tip bends or shifts in response to the tiny forces between it and the sample. The tip sits at the end of a flexible diving-board-shaped beam called a cantilever, and a laser bouncing off the cantilever’s back tracks its movements with sub-nanometer precision. That deceptively simple setup, first built in 1986, can image individual atoms, measure how hard or soft a material is, map its chemical composition, and even watch single protein molecules move in real time.
The Core Setup
Picture a record player, but shrunk down by a factor of about a million. The stylus is a tip with a point just a few nanometers across, often made of silicon or silicon nitride. That tip is attached to the cantilever, which is typically around 100 to 200 micrometers long and flexible enough that atomic-scale forces cause it to bend measurably. As the tip scans across a surface, the cantilever deflects up and down following the sample’s contours, and those deflections become the raw data for a topographic image.
Tracking the cantilever’s motion relies on what is called an optical lever. A laser beam reflects off the polished top of the cantilever and lands on a position-sensitive photodetector, usually a split photodiode. When the cantilever bends even a fraction of a nanometer, the reflected laser spot shifts on the detector, and that shift gets translated into a measurable voltage signal. This optical lever arrangement is elegant and sensitive, though both the achievable force range and the accuracy of force measurements are limited by non-idealities in the detector and the optical path itself.1IOP Publishing. Robust approach to maximize the range and accuracy of force application in atomic force microscopes with nonlinear position-sensitive detectors
Below the cantilever, the sample sits on a stage that can move in three dimensions with extreme precision. That positioning is handled by piezoelectric actuators, which expand or contract by tiny, controllable amounts when voltage is applied. Piezoelectric actuators are the workhorses of scanning probe microscopy because they combine high precision, a simple mechanical design, and fast response times.2Actuators. Nonlinear Modeling of a Piezoelectric Actuator-Driven High-Speed Atomic Force Microscope Scanner Using a Variant DenseNet-Type Neural Network As the stage sweeps the sample beneath the tip in a raster pattern, a feedback loop continuously adjusts the vertical position to keep either the cantilever deflection or its oscillation amplitude at a set value. The voltage corrections fed to the piezo at each point become the height map of the surface.
What Forces the Tip Actually Feels
At the nanoscale, the tip-sample interaction is governed by two main categories of force. The first is van der Waals attraction, the same weak force that lets geckos stick to walls. It arises from fleeting imbalances in the charge distribution of atoms and molecules, which induce mirror-image charge imbalances in nearby matter. This force falls off steeply with distance. The second category is the chemical bonding force, which comes from stronger interactions among atomic nuclei and their shared electron clouds. When the tip gets close enough to effectively touch the surface, the bonding force turns repulsive and pushes back, preventing the tip from passing through the sample.3Nature Communications. Light-modulated van der Waals force microscopy
The balance between these attractive and repulsive forces is what makes different imaging modes possible. Far from the surface, the tip feels mainly van der Waals attraction pulling it down. Right at the surface, repulsion dominates. The transition zone between those regimes is where most of the interesting physics happens, and different AFM modes exploit different parts of that force landscape.
The Three Main Operating Modes
AFM operates in three broad families of modes, each suited to different kinds of samples and questions. They differ mainly in how the tip interacts with the surface and what the feedback loop tries to hold constant.
Contact Mode
In contact mode, the tip stays in continuous physical contact with the surface while scanning. The feedback system maintains a constant deflection of the cantilever, which corresponds to a constant applied force. This is the simplest mode and was the original way AFMs operated. It works well on hard, flat samples like polished crystals, but on soft or loosely attached materials the lateral dragging force can damage the sample or sweep features aside. Contact mode is still widely used for friction measurements and certain electrical measurements where the tip needs to stay in contact.
Tapping Mode
Tapping mode, also called intermittent contact mode, was developed to reduce the damage problem. Here the cantilever is vibrated near its resonant frequency so the tip bounces up and down, touching the surface only briefly at the bottom of each oscillation cycle. The feedback loop adjusts the height to keep the oscillation amplitude constant. Because the tip spends only a fraction of each cycle in contact, lateral shear forces are dramatically reduced, making this mode far gentler on biological samples, polymers, and other soft materials.
Tapping mode also gives you a bonus data channel called phase contrast. When the tip taps on a hard region, the phase of its oscillation shifts differently than when it taps on a soft region, because the energy lost per tap depends on the material’s mechanical properties. This means you get a map of surface stiffness alongside the topography, letting you distinguish, for example, a rubbery domain from a glassy one in a polymer blend. Research into phase contrast has shown that at very small tapping amplitudes below about 3 nanometers, surface perturbations from the tapping itself create additional energy losses that reveal fine details of a material’s viscous behavior.4Communications Physics. Deconvolution of dissipative pathways for the interpretation of tapping-mode atomic force microscopy from phase-contrast
One subtlety worth knowing about tapping mode is that the apparent height of features can sometimes flip depending on how hard you tap. When imaging a thin organic film on a mineral surface, standard tapping showed the film sitting above the mineral, as expected. But when the tapping force was reduced to a very gentle level, the image inverted, with the mineral appearing taller than the organic layer.5IOP Publishing. Observation of topography inversion in atomic force microscopy of self-assembled monolayers Artifacts like this remind users that an AFM image is not a simple photograph; it reflects an interplay between real topography and the tip-sample forces.
Non-Contact Mode
In non-contact mode, the cantilever oscillates just above the surface without ever touching it. The tip senses only long-range attractive forces, and the feedback loop tracks shifts in the cantilever’s resonant frequency caused by the force gradient near the surface. This mode is the hardest to operate but can achieve true atomic resolution, resolving individual atoms and even the bonds between them. The image contrast comes from very short-range chemical forces rather than from the blunter topographic interaction of contact or tapping modes, which makes non-contact AFM especially powerful for studying surface chemistry at the single-molecule level.6ACS Publications. Noncontact Atomic Force Microscopy: An Emerging Tool for Fundamental Catalysis Research
Force Spectroscopy and Pulling on Single Molecules
AFM is not just an imaging tool. By pressing the tip into a surface and then retracting it while recording the force at every point, you generate what is called a force-distance curve. That curve tells you how stiff the material is, how strongly the tip adheres to the surface, and, if there is a molecule tethered between tip and surface, how much force it takes to unfold or break it apart.
This capability, known as force spectroscopy, has become a major tool in biophysics. Researchers routinely use it to measure the rupture forces of individual chemical bonds and to watch single proteins unfold and refold under controlled mechanical tension.7PubMed Central. Force Spectroscopy on Single Molecules of Life Imagine grabbing a single protein with the AFM tip and stretching it like a tiny spring until its structure gives way. The force at which each structural domain pops open reveals the mechanical stability of that domain and provides insight into how cells cope with mechanical stress.
For force spectroscopy to yield meaningful biological data, the tip often needs to be chemically functionalized so that it grabs only the molecule of interest. One approach forms a molecular coating on a silicon nitride tip through a chemical reaction that anchors biomolecules via a strong bond to the tip surface, creating a uniform layer with a controlled density of binding sites. That kind of tip functionalization has been used, for example, to measure unbinding forces between a sugar molecule and a protein that recognizes it.8PubMed. A general and efficient cantilever functionalization technique for AFM molecular recognition studies
Seeing Bonds Between Atoms
One of the most visually stunning achievements in AFM came from pushing non-contact mode to its limits. By attaching a single carbon monoxide molecule to the tip, researchers were able to image individual carbon-carbon bonds in flat organic molecules and even distinguish bonds of different strength. A carbon-carbon double bond, for instance, looks subtly different from a single bond in the resulting image. This was demonstrated on polycyclic aromatic hydrocarbons and fullerenes, where the bond-order differences between various carbon-carbon connections were clearly resolved.9PubMed. Bond-order discrimination by atomic force microscopy Those images, looking almost like the structural formulas drawn in chemistry textbooks, became iconic illustrations of what nanoscale imaging can achieve.
High-Speed AFM and Watching Biology Happen
Conventional AFM is slow. Acquiring a single image typically takes a minute or more because the feedback loop has to settle at each pixel. That speed is fine for static surfaces but hopeless for watching biological processes that happen on a timescale of seconds or less. High-speed AFM, developed through the late 2000s, solved this by redesigning the scanner, cantilever, and feedback electronics to operate roughly a thousand times faster than conventional systems.10PubMed Central. Biological physics by high-speed atomic force microscopy
The payoff has been remarkable. In 2010, high-speed AFM was used to film individual motor protein molecules walking along a cytoskeletal filament, producing movies of molecular machinery in action at sub-nanometer resolution. That kind of simultaneous structural and dynamic information was inaccessible by any other technique at the time. Since then, high-speed AFM has been used to observe biomolecular dynamics under conditions close to those found inside living cells, including imaging in liquid at near-physiological temperature.11PubMed. Visualizing Molecular Dynamics by High-Speed Atomic Force Microscopy
AFM-IR and Nanoscale Chemical Identification
Standard AFM tells you about the shape and mechanical properties of a surface, but not what it is made of chemically. That gap is filled by AFM-IR, which combines the spatial resolution of AFM with infrared spectroscopy. The idea is to illuminate the sample with a pulsed infrared laser. When the laser’s wavelength matches an absorption band of whatever material is under the tip, that tiny region heats up and expands. The cantilever detects this thermal expansion as a brief deflection, and the magnitude of that deflection at each wavelength produces a local infrared absorption spectrum. The result is chemical identification at a resolution down to about 10 nanometers, far beyond the limits of conventional infrared microscopy, which is restricted to several micrometers by the diffraction limit of infrared light.12PubMed Central. AFM-IR for Nanoscale Chemical Characterization in Life Sciences: Recent Developments and Future Directions
Because virtually all major biological molecules, including proteins, lipids, carbohydrates, and nucleic acids, absorb mid-infrared radiation, AFM-IR has become increasingly useful for studying biological processes at the nanoscale.13PubMed. AFM-IR: Technology and Applications in Nanoscale Infrared Spectroscopy and Chemical Imaging You can map where different chemical species sit within a cell membrane, identify nanoscale deposits in tissue sections, or track how a polymer degrades. More recent work has pushed toward collecting force-volume measurements and infrared spectra simultaneously, giving mechanical and chemical data in a single scan.14PubMed Central. Force Volume Atomic Force Microscopy-Infrared for Simultaneous Nanoscale Chemical and Mechanical Spectromicroscopy
Nanomechanical Mapping
A related extension of force spectroscopy is quantitative nanomechanical mapping, where the AFM performs a rapid force curve at every pixel while scanning. Instead of a single topography image, you get simultaneous maps of height, elastic modulus, adhesion, and energy dissipation. One widely used implementation runs the force curves at a rate around 2 kHz, fast enough to produce these maps in a practical timeframe.15PubMed Central. Quantitative Nanomechanical Mapping of Polyolefin Elastomer at Nanoscale with Atomic Force Microscopy This has become a standard tool for materials scientists studying polymer blends, composite materials, and thin films, where the mechanical contrast between phases is the question of interest.
Magnetic and Electrical Variants
By changing the tip coating or the detection scheme, AFM can be adapted to sense forces other than the mechanical and van der Waals interactions described so far. Magnetic force microscopy (MFM) uses a magnetized tip to map magnetic domains on a surface, which is essential for developing hard drives and magnetic memory devices. Kelvin probe force microscopy (KPFM) measures the local electrical potential of a surface, which reveals differences in work function, charge distribution, or dopant concentration in semiconductors.
A practical challenge arises when both magnetic and electrostatic forces are present, since they can produce similar-looking contrast in the image. One solution is to run KPFM and MFM simultaneously, using the KPFM feedback to cancel out the electrostatic contribution in real time and isolate the magnetic signal. This combined approach has proven especially valuable for samples with weak magnetic moments, where electrostatic artifacts would otherwise overwhelm the magnetic information.16Beilstein Journal of Nanotechnology. Distinguishing magnetic and electrostatic interactions by a Kelvin probe force microscopy–magnetic force microscopy combination
The Tip Convolution Problem
Every AFM image comes with an inherent artifact that users have to grapple with: tip convolution. Because the tip has a finite size and shape, it cannot perfectly trace features that are smaller than itself or that have steep sidewalls. Imagine trying to trace a narrow groove with a blunt pencil. The pencil rides along the edges rather than dropping into the groove, making it appear wider and shallower than it really is. In AFM, this means lateral dimensions of small objects are systematically overestimated, while narrow trenches appear narrower at the bottom than they actually are.
This effect is well documented. The exact lateral dimensions of molecules or protein assemblies are convoluted with the physical profile of the imaging probe.17PubMed. Correcting for AFM tip induced topography convolutions in protein-DNA samples The problem gets worse as the features being imaged approach the size of the tip itself. The magnitude of the distortion can be described geometrically once you know the tip’s shape, and various deconvolution algorithms have been developed to mathematically remove the tip’s contribution and recover a more accurate representation of the true surface profile.18Nanotechnology. Correction of the tip convolution effects in the imaging of nanostructures studied through scanning force microscopy In three-dimensional AFM imaging, where the full 3D profile of a structure is measured, tip convolution compensation becomes even more critical, because every facet of the image is affected by the tip geometry.19Machines. Compensation Method for Correcting the Topography Convolution of the 3D AFM Profile Image of a Diffraction Grating
The practical upshot is that tip sharpness and shape matter enormously for data quality. Tips wear out during scanning, and a worn or contaminated tip degrades resolution in ways that may not be immediately obvious. Experienced AFM users routinely check their tip by imaging a calibration standard with known sharp features and comparing the measured dimensions to the expected ones.
Semiconductor and Industrial Metrology
Beyond the research lab, AFM has become a production tool in the semiconductor industry. As transistor features have shrunk below 10 nanometers, optical inspection techniques struggle to resolve them, and AFM fills the gap. A specialized variant called three-dimensional AFM can measure the sidewall roughness and profile of vertical and undercut structures in semiconductor chips, features that a standard top-down AFM cannot reach. One implementation uses a tilted scanner to probe the sides of trenches and lines, combined with automated analysis software to speed up the workflow.20PubMed Central. Automated measurement and analysis of sidewall roughness using three-dimensional atomic force microscopy Sidewall roughness at the nanometer scale directly affects transistor performance and yield, so this kind of measurement feeds directly into manufacturing process control.
AFM-based metrology is also used in other industries. Optical coating manufacturers use it to measure film thickness and surface roughness. Data storage companies use MFM to characterize magnetic recording media. Pharmaceutical companies use it to image drug nanoparticles and crystal surfaces. In each case, the appeal is the same: AFM provides three-dimensional surface data at a resolution no optical microscope can match, on almost any material, with minimal sample preparation.
Why the Cantilever Itself Is Getting Smarter
Recent engineering has focused on making cantilevers do more than passively deflect. One approach coats the cantilever with a light-sensitive molecular layer that changes its surface stress when illuminated with a specific wavelength of light. By toggling the light on and off, researchers can actuate the cantilever optically rather than with a piezoelectric shaker, which opens the door to cleaner, lower-noise oscillation and more creative experimental designs.21PubMed. Nanomechanical actuation of a silicon cantilever using an azo dye, self-assembled monolayer Other developments include cantilevers with integrated heaters for thermal measurements and cantilevers with built-in electrical contacts for simultaneous conductivity mapping. The trend is toward turning the cantilever from a dumb spring into a multifunctional sensor that can capture several physical quantities at each pixel in a single pass.

