Atomic force microscopy, usually called AFM, is a technique that builds images of surfaces by physically touching them with an incredibly sharp tip, dragging or tapping it across the sample and recording how it moves up and down. Unlike optical or electron microscopes that rely on light or electron beams, an AFM “feels” a surface the way a fingertip reads Braille, except the finger is a needle just a few nanometers wide at its point. That tactile approach lets it map features as small as individual atoms and molecules, and it works on almost anything: metals, plastics, living cells, even single strands of protein floating in liquid.
The Basic Setup
An AFM has three essential parts. First is a tiny, flexible beam called a cantilever, usually made of silicon or silicon nitride, with a sharp tip at its free end. Second is a laser aimed at the back of the cantilever; the laser bounces off and hits a position-sensitive photodetector, which tracks any bending or twisting of the cantilever with sub-nanometer precision. Third is a piezoelectric scanner, a device that moves either the sample or the tip in the x, y, and z directions with extreme accuracy. As the tip encounters bumps, grooves, or sticky patches on the surface, the cantilever deflects, and the reflected laser shifts on the detector. A feedback loop continuously adjusts the height of the tip to keep the deflection (or another measured signal) constant, and those height adjustments, recorded point by point, become a three-dimensional map of the surface.
The invention of the AFM was announced in 1986 by Gerd Binnig, Calvin Quate, and Christoph Gerber, building on the success of the scanning tunneling microscope, which Binnig had co-invented a few years earlier.1PubMed Central. Atomic force microscope The tunneling microscope was limited to conductive surfaces. The AFM removed that restriction entirely, which is why it spread so rapidly into biology, polymer science, and materials engineering.
Contact Mode and Why It Was Just the Beginning
The simplest way to run an AFM is contact mode: the tip stays in continuous physical contact with the surface while it scans. The feedback loop holds the cantilever deflection constant, meaning the tip presses down with a steady force as it traces the terrain. Contact mode gives excellent resolution and is still used on hard, flat samples, but it has a drawback. Dragging a sharp tip across a soft or loosely attached sample can scratch it, push material around, or tear delicate structures apart.
That problem led to a family of gentler alternatives. In tapping mode (also called amplitude modulation AFM), the cantilever oscillates near its natural frequency, and the tip touches the surface only briefly at the bottom of each swing. Instead of tracking a constant force, the feedback loop tracks the oscillation amplitude: when the tip gets closer to the surface the amplitude drops, and the scanner adjusts height to restore it. The intermittent contact dramatically reduces lateral forces, making tapping mode the default choice for polymers, biological membranes, and other easily damaged materials.
Tapping mode also opens a second data channel. Because the oscillating tip interacts with the surface, the phase of its oscillation shifts relative to the driving signal. Those phase shifts are sensitive to local mechanical and chemical properties, so recording phase alongside height produces a compositional map layered on top of the topography. Phase contrast imaging has been used to distinguish different polymer blocks in thin films and to visualize graphene layers on a substrate, where the energy the tip loses per tap cycle is measurably lower on graphene than on the bare support beneath it.2Nanotechnology. Measuring phase shifts and energy dissipation with amplitude modulation atomic force microscopy3Nanotechnology. Phase imaging and nanoscale energy dissipation of supported graphene using amplitude modulation atomic force microscopy
Non-contact mode goes even further: the tip never touches the surface at all. It oscillates just above the surface, and shifts in its resonance frequency caused by attractive forces (mostly van der Waals interactions) provide the imaging signal. Non-contact AFM with specialized quartz tuning-fork sensors and tips functionalized with a single carbon monoxide molecule has achieved what many consider the most stunning AFM images ever produced: pictures that resolve individual chemical bonds within a molecule, revealing bond lengths and bond angles as clearly as a ball-and-stick model drawn on paper.4Surface Science Reports. Noncontact atomic force microscopy: Bond imaging and beyond
Measuring Stiffness and Adhesion at the Nanoscale
AFM is not just a camera. Because the cantilever is essentially a tiny spring with a known stiffness, the force it exerts on a surface can be measured directly. Pressing the tip into a sample and recording how much force is needed to indent it by a given depth yields the local elastic modulus, a measure of how stiff the material is. Pulling the tip away records adhesion: how strongly the surface clings to the tip before letting go.
Quantitative nanomechanical mapping takes this further by collecting a full force curve at every pixel of an image, thousands of times per second. One study on a polyolefin elastomer demonstrated how acquisition frequency matters: the measured stiffness rose from roughly 12 megapascals at low tapping rates to about 90 megapascals at higher rates, reflecting the material’s viscoelastic behavior at different timescales.5PubMed Central. Quantitative Nanomechanical Mapping of Polyolefin Elastomer at Nanoscale with Atomic Force Microscopy In block copolymer films, the same kind of mapping can distinguish different polymer phases by their modulus and adhesion, and even detect whether cylindrical nanostructures within the film are oriented vertically or lying flat.6PubMed. Assessing the Local Nanomechanical Properties of Self-Assembled Block Copolymer Thin Films by Peak Force Tapping
Pulling on Single Molecules
If you attach a molecule to the AFM tip and another to the surface, then bring them into contact and pull them apart, you can measure the force required to break a single molecular bond. This is single-molecule force spectroscopy, and it has become one of the most powerful ways to study how proteins fold and unfold. The approach works by mechanically stretching a single protein chain: the force curve reveals distinct unfolding steps, each corresponding to a structural unit within the protein giving way. Researchers have used this to map the folding landscapes of membrane proteins in lipid bilayers, producing insights into structural changes that are difficult to access by any other method.7PubMed. Single-Molecule Force Spectroscopy of Membrane Protein Folding8PubMed Central. Modulation of a protein-folding landscape revealed by AFM-based force spectroscopy notwithstanding instrumental limitations
A key challenge is that the protein is tethered to a cantilever many orders of magnitude larger than itself, and that mismatch in scale can influence the dynamics researchers are trying to measure. Ongoing work focuses on disentangling the molecule’s intrinsic behavior from the mechanical effects of the probe and the flexible tethering molecules used to anchor the protein.8PubMed Central. Modulation of a protein-folding landscape revealed by AFM-based force spectroscopy notwithstanding instrumental limitations
Working in Liquid on Living Cells
One of the AFM’s major advantages over electron microscopy is that it works perfectly well in liquid. You do not need to dry, coat, stain, or freeze your sample. This means living cells can be imaged and probed in their normal culture medium at body temperature. Setting this up typically involves seating cells on a glass coverslip inside a heated fluid chamber, lowering the cantilever through the liquid surface, waiting for the temperature and cantilever deflection to stabilize, and then scanning or indenting.9PubMed Central. Atomic Force Microscopy for Live-Cell and Hydrogel Measurement Microbial cells have been imaged this way with nanometer resolution under conditions that keep them alive and functioning.10PubMed Central. Atomic force microscopy and chemical force microscopy of microbial cells
A further development called FluidFM replaces the solid cantilever with a hollow one containing a tiny internal channel. The channel connects to a pressure controller, turning the AFM tip into a force-controlled nanopipette. Through this setup, researchers can inject material into a single living cell, extract a small sample of its cytoplasm, or physically pick up and move individual cells, all while monitoring the force applied to make sure the cell is not crushed in the process.11PubMed. FluidFM: combining atomic force microscopy and nanofluidics in a universal liquid delivery system for single cell applications and beyond12PubMed Central. Extending applications of AFM to fluidic AFM in single living cell studies
High-Speed AFM and Watching Molecules Move
Traditional AFM scans take minutes per image, which is fine for static surfaces but useless if you want to watch a biological machine in action. High-speed AFM (HS-AFM) solves this with miniaturized cantilevers, faster scanners, and optimized feedback electronics that push frame rates into the range of several frames per second. The typical spatial resolution is a few nanometers laterally and about a tenth of a nanometer vertically, with time resolution under 100 milliseconds per frame.13Microscopy. Spatiotemporal resolution in high-speed atomic force microscopy for studying biological macromolecules in action
That combination lets researchers film individual proteins as they do their jobs: motor proteins walking along filaments, enzymes changing shape as they process substrates, DNA strands being read by polymerase. The movies capture only surface topography, not internal structure, but they reveal dynamics that no other single-molecule technique can show in real time.14PubMed. High-Speed Atomic Force Microscopy for Filming Protein Molecules in Dynamic Action15PubMed Central. Technical advances in high-speed atomic force microscopy
Specialized Tips for Chemical and Molecular Recognition
An unmodified silicon tip interacts with everything on a surface indiscriminately. To add chemical specificity, researchers functionalize tips by attaching particular molecules to them. Coating a tip with antibodies, for instance, turns it into a biosensor that feels a spike in adhesion whenever it encounters the matching antigen on a sample surface. This is the basis of recognition imaging, which generates a topography map and a chemical recognition map simultaneously.16PubMed. Recent Progress in Molecular Recognition Imaging Using Atomic Force Microscopy17PubMed. A new, simple method for linking of antibodies to atomic force microscopy tips
Getting the chemistry right matters. Tips are usually coated with a thin layer of gold, then treated with linker molecules that tether the desired bioligand at just the right length and orientation. Poorly controlled tip chemistry is one of the most common sources of irreproducible results in AFM-based recognition experiments.18PubMed. Chemical modifications of atomic force microscopy tips
Magnetic and Electrical Variants
Swapping the standard tip for one with a magnetic coating creates a magnetic force microscope (MFM). The tip is scanned across the surface in a two-pass scheme: the first pass records topography in tapping mode, and the second pass retraces the profile at a fixed height above the surface, where the dominant interaction is between the tip’s magnetic moment and the sample’s stray magnetic field. The resulting phase-shift map reveals magnetic domain structures, which is essential for developing hard drives, magnetic sensors, and spintronic devices.19PubMed Central. Magnetic Force Probe Characterizations of Nanoscaled Ferromagnetic Domains: Finite-Element Magnetostatic Simulations Quantitative MFM remains tricky because the signal depends on the tip’s geometry and coating thickness as well as the sample’s magnetization; round-robin comparisons between labs show that standardizing these parameters is still an active area of work.20Journal of Magnetism and Magnetic Materials. Round robin comparison on quantitative nanometer scale magnetic field measurements by magnetic force microscopy
Kelvin probe force microscopy (KPFM) uses an electrically conductive tip to map surface electrical potential. It measures the contact potential difference between tip and sample, which reflects local work function or charge distribution. The technique is widely used in semiconductor research and photovoltaic development. One well-known limitation is blurring: because electrostatic force is a long-range interaction, the KPFM image is a smeared-out version of the true potential distribution, and deconvolution methods are needed to sharpen it.21PubMed. Reconstruction of Kelvin probe force microscopy image with experimentally calibrated point spread function
Using the Tip as a Pen
The AFM tip is not limited to reading surfaces; it can write on them, too. In dip-pen nanolithography, a tip is coated with “ink” molecules (originally alkanethiols) that transfer to a gold surface through a tiny water meniscus that forms between tip and substrate in ambient humidity. Lines as narrow as 30 nanometers have been written this way, making the technique a tool for creating custom nanostructures, chemical patterns, and sensor elements.22PubMed. “Dip-Pen” nanolithography Other nanolithography methods use the tip to scratch, oxidize, or mechanically indent the surface, essentially carving patterns at scales far below what conventional photolithography can reach.
Artifacts and Practical Pitfalls
AFM images look convincingly three-dimensional, which can breed overconfidence. Several categories of artifact routinely fool newcomers and occasionally experienced users as well. Tip shape is the biggest one: because the image is a convolution of the surface and the tip geometry, any feature narrower than the tip radius appears wider than it really is. A tall, narrow pillar scanned with a blunt tip will look like a broad dome. Conversely, the tip cannot reach the bottom of a narrow trench, so deep features appear shallower than they are.
Scanner nonlinearity is another source of distortion. Piezoelectric materials do not expand perfectly in proportion to the applied voltage, especially over large scan ranges, so images can appear stretched or compressed unevenly. Environmental vibrations, acoustic noise, and thermal drift can all inject false features or streaks into an image. And incorrect feedback settings, too-slow or too-fast gain, can produce ringing at step edges or fail to track rapid height changes altogether.23PubMed Central. Recognizing and avoiding artifacts in atomic force microscopy imaging Learning to recognize these artifacts is as much a part of AFM training as learning to run the instrument.
How AFM Compares to Electron Microscopy
The most common question from people new to the field is why you would use an AFM instead of an electron microscope. The answer depends on what you need. Electron microscopes, both scanning (SEM) and transmission (TEM), are faster at surveying large areas, and TEM achieves atomic resolution on thin cross-sections routinely. But electron microscopes require vacuum, which means biological samples must be fixed, dried, or frozen. They often need conductive coatings, which adds a preparation step and can obscure fine surface detail. An early comparative study of filtration membranes found that AFM and STM both outperformed SEM in resolution, and that the electron beam itself damaged the polymer surfaces being studied.24Ultramicroscopy. Comparative study of micro- and ultrafiltration membranes using STM, AFM and SEM techniques
AFM’s unique strengths are its ability to work in liquid and air, its direct measurement of height (giving true three-dimensional topography rather than a projected image), and its capacity to measure forces and mechanical properties alongside imaging. Its weaknesses are slow scan speed compared to electron beams, small scan areas (typically under 100 micrometers on a side), and the tip-shape convolution problem discussed above. Neither technology replaces the other; in many labs, samples go through both instruments to get complementary information.
Lateral Force Microscopy and In-Plane Interactions
Most AFM measurements track forces perpendicular to the surface, but the cantilever also twists when it encounters friction or lateral forces. Recording that torsional signal produces a friction map, which is useful for studying lubrication, wear, and the mechanical behavior of thin coatings. Lateral force microscopy has been pushed to the single-molecule level: researchers have used it to probe the in-plane interaction potential beside an adsorbed carbon monoxide molecule, finding that the interaction remains radially symmetric out to surprisingly large angles from the surface normal.25PubMed Central. Exploring in-plane interactions beside an adsorbed molecule with lateral force microscopy That kind of measurement sits at the current frontier of AFM capability, combining ultra-low-temperature operation, atomically defined tips, and extremely sensitive force detection to map interaction landscapes that were previously accessible only through theoretical calculations.