Two XX and YY are homotopy equivalent if there are f:XYf:X\to Y and g:YXg:Y\to X such that gfg\circ f is homotopic to idX\operatorname{id}_X and fgf\circ g is homotopic to idY\operatorname{id}_Y. A homotopy is a continuous one-parameter deformation between maps.

Homotopy equivalence preserves homotopy invariants, such as homotopy groups and singular homology, but it is weaker than . It records the large-scale deformation type rather than the exact local topology.