What is Atomic Force Microscopy (AFM)?

How an AFM works, what it measures and where it is used

In short

  • An atomic force microscope (AFM) scans a sharp tip over a surface and records the height at every point, giving a 3D map with sub-nanometre vertical resolution.
  • It works on any solid sample, conductive or insulating, in air, in liquid or under controlled atmosphere, without coating.
  • Beyond topography, AFM modes map current and resistance, surface potential, stiffness, magnetic domains and thermal properties at the nanoscale.
  • Gerd Binnig, Calvin Quate and Christoph Gerber introduced the AFM in 1986.

CSInstruments · Updated November 2026

Principle

How an AFM works

An AFM does not use lenses. It feels the surface with a probe and turns the interaction into a height map.

  1. The probe. A tip with a radius of a few nanometres sits at the free end of a micro-machined cantilever, typically 100 to 450 µm long. See the AFM probes and tips.
  2. The detection. A laser beam reflects off the back of the cantilever onto a position-sensitive photodiode. Tiny bending or changes in the oscillation of the cantilever move the laser spot.
  3. The scanner. Piezoelectric actuators move the tip relative to the sample line by line in X and Y, and up and down in Z.
  4. The feedback loop. The controller adjusts Z at every point to keep the deflection or the oscillation amplitude at a set value. The Z correction at each point is the height of the surface.
  5. The image. Height and other signals recorded at each pixel form the topography image and the property maps.
Nano-Observer II atomic force microscope from CSInstruments
Figure 1. The Nano-Observer II atomic force microscope. Its scanner covers 100 × 100 µm in XY and 15 µm in Z.

Imaging modes

Contact, resonant and force-curve imaging

ModeHow the tip interactsTypical use
Contact modeThe tip stays in contact; the feedback keeps the cantilever deflection constant.Hard, robust samples; friction (lateral force); conductive AFM.
Resonant (tapping) modeThe cantilever oscillates near its resonance and touches the surface only briefly; the feedback keeps the amplitude constant.Most samples; the phase signal adds material contrast.
Soft Interaction ControlThe tip approaches each point, touches with a set force and lifts away, with no lateral dragging.Soft, sticky or fragile samples; quantitative mechanics with Soft MEKA.
Lift (two-pass) modesA first pass records topography; a second pass follows it at a set height to sense long-range forces.Magnetic (MFM) and electrostatic (EFM) imaging.

Beyond topography

What an AFM measures

PropertyAFM modeWhat you get
Current and resistanceResiScope™, conductive AFMResistance maps; ResiScope covers 10² to 10¹² Ω (50 fA to 1 mA) in one scan.
Surface potential, work functionKPFM, HD-KFM™Contact potential difference in mV.
Permittivity, carrier type and concentrationsMIMCapacitance and resistance channels without a conductive path.
Stiffness, adhesion, modulusSoft MEKA, force spectroscopyOne force curve per point or at chosen points.
Magnetic domainsMFM, VMFMMagnetic force gradient, also under an applied field.
Piezo- and ferroelectric domainsPFMAmplitude and phase of the piezoresponse.
Thermal propertiesSThMLocal temperature and thermal-conductivity contrast.
RoughnessRoughness analysisSa, Sq, Ra and other parameters from the height map.

Not sure which mode fits your sample? See how to choose the right AFM mode.

Comparison

AFM compared with SEM, STM and optical profilometry

AFMSEMSTMOptical profilometer
SignalForce on a tipElectrons from the surfaceTunnelling currentReflected light
Height informationYes, sub-nm verticalNo direct heightYesYes, nm vertical
Lateral resolutionSet by tip radius, nm scalenm scaleAtomicLimited by optics, sub-µm
SamplesAny solid, conductive or notUsually conductive or coatedConductive onlyReflective surfaces
EnvironmentAir, liquid, gas, vacuumUsually vacuumOften ultra-high vacuumAir
Field of viewUp to about 100 µmµm to mmnm to µmµm to mm
Property mapsElectrical, mechanical, magnetic, thermalComposition with EDSElectronic statesNo

AFM and SEM are often used together. The Nano-Observer II can work in a glovebox or under controlled atmosphere when samples must not see air.

Applications

Applications of AFM

FieldWhat AFM showsExample
SemiconductorsDoped regions, junctions, defects, device response under biasSemiconductor devices
BatteriesConductive network, particle contact and degradation of electrodesBattery electrodes
Solar cellsSurface potential of grains and grain boundaries, response to lightPerovskite solar cells
2D materialsLayer number, work function, defects and edges2D materials
PolymersPhase separation, crystallization, stiffness and adhesionPolymer nanomechanics
Magnetic materialsDomains and their switching under a fieldMFM under a magnetic field
Biology and soft matterCells, biomolecules and membranes, in air or liquidBiological samples

AFM images for each application field are in the AFM scan gallery: semiconductors, renewable energy, 2D materials, polymers, materials science and biology. More fields and materials: AFM by material.

Resolution

What limits AFM resolution

  • Vertical: the noise of the instrument in Z. On SrTiO₃ in resonant mode the Nano-Observer measured an RMS roughness of 139.6 pm in closed loop.
  • Lateral: the tip radius and the tip shape, which sets how far the tip can enter narrow features.
  • Pixels: a 512-pixel line over 10 µm gives about 20 nm per pixel; zoom in to resolve smaller features.
  • Mode: lift modes such as MFM sense the sample from a distance, so their resolution also depends on the lift height.

Read more

Related pages

FAQ

Frequently Asked Questions

What is atomic force microscopy (AFM)?

Atomic force microscopy is a scanning probe technique that measures the surface of a sample with a sharp tip on a flexible cantilever. As the tip scans line by line, the AFM records the height at every point and builds a three-dimensional map with sub-nanometre vertical resolution. With the right mode it also maps electrical, mechanical, magnetic and thermal properties.

Who invented the atomic force microscope?

Gerd Binnig, Calvin Quate and Christoph Gerber described the atomic force microscope in 1986, five years after the scanning tunneling microscope. Unlike the STM, the AFM does not need a conductive sample.

How does an AFM work?

A laser beam reflects off the back of the cantilever onto a position-sensitive photodiode. When the tip meets a feature, the cantilever bends or its oscillation changes, and the laser spot moves. A feedback loop moves the piezoelectric scanner up or down to keep that signal constant, and the Z movement at each point becomes the height image.

What is the resolution of an AFM?

Vertical resolution is below a nanometre and is limited by the noise of the instrument. Lateral resolution is set mainly by the tip radius, typically a few nanometres for a sharp silicon tip, and by the pixel size of the scan. Small atomic-scale lattices can be resolved on flat crystalline samples.

What is the difference between AFM and SEM?

SEM gives a fast two-dimensional image of a large area, usually in vacuum and often with a conductive coating. AFM measures true height in three dimensions, works in air, liquid or controlled atmosphere, needs no coating, and maps properties such as resistance, surface potential or stiffness. AFM covers smaller areas, up to about 100 µm, and takes minutes per image.

What is the difference between AFM and STM?

The STM measures a tunnelling current between a metal tip and the sample, so it needs a conductive surface and often ultra-high vacuum. The AFM measures the force on the tip, so it works on insulators, polymers and biological samples as well as on conductors, in air or liquid.

Can an AFM measure in liquid?

Yes. The cantilever can operate in a fluid cell, which is used for biological samples, corrosion and electrochemistry. On the Nano-Observer this is done with the EZ Liquids cell and electrochemical AFM.

What is AFM used for?

For surface topography and roughness, and for property maps at the nanoscale: current and resistance (ResiScope, conductive AFM), surface potential (KPFM, HD-KFM), stiffness and adhesion, magnetic domains (MFM), piezoresponse (PFM) and thermal contrast (SThM). Typical fields are semiconductors, batteries, solar cells, 2D materials, polymers, magnetic materials and biology.

Questions about AFM?

Ask the application scientists behind our AFMs and modes about your samples, probes, set-up or which mode fits your measurement. We answer every message personally.