The Strange Mathematical Sense in Which a Mug and a Doughnut Are Alike

Introduction

A ceramic mug and a ring-shaped doughnut seem to have little in common: one holds a drink, while the other is food. Yet in topology, a branch of mathematics concerned with shape and connectivity, they can count as the same kind of object. The key is not their material or purpose, but the single passage that runs through each one.

The short answer: each has one through-hole

Imagine an idealized mug with a handle and an idealized ring doughnut. The handle creates an opening that you can pass through, and the doughnut has a central opening. In a simplified topological model, each object has one hole of this kind. If either could be reshaped gradually, without cutting, tearing, or joining parts, into the other, a topologist would regard them as equivalent.

This does not mean a real mug can be kneaded into a doughnut, or that the objects are identical in every way. A mug is rigid and hollow; a doughnut is soft and edible. Topology deliberately sets aside such details to ask a narrower question: what features of a shape remain when it is smoothly stretched or bent?

What topology means by “the same shape”

In everyday speech, two things have the same shape when their outlines look alike or their dimensions match. Topology uses a more flexible idea. Two shapes are topologically equivalent if one can be continuously transformed into the other while preserving how its parts connect.

In this thought experiment, “continuously” means that points do not suddenly jump from one place to another. “Without tearing or joining” means that the object’s connections stay intact. The shape may be stretched, compressed, or bent, but it cannot be split apart or have a new passage punched through it.

Picture a soft rubber model of a mug. If it could be reshaped without breaking, its handle might be made thicker or thinner, and the cup body could be stretched or squashed. The goal would be to turn the cup body into the rounded ring of a doughnut while keeping the handle’s passage open. The resulting object need not look appetizing or be useful as a mug; only its connectivity matters.

The crucial feature is a passage, not a dent

The word “hole” can mean several different things. A dent is a hollow in a surface that does not go all the way through. A tunnel is a passage through an object. For the mug-and-doughnut comparison, the important feature is the tunnel-like opening formed by the handle or by the doughnut’s center.

For example, a solid ball with a shallow dimple is still topologically like a ball: the dimple can be smoothed away without cutting the material. A ring, by contrast, has a passage that cannot be removed by ordinary bending or stretching. Closing it would require breaking the object or filling the opening in a way that joins material across it.

That distinction explains why a cup without a handle is not the classic example. Its drinking cavity is open at the top, but it is not a tunnel passing through the cup wall in the same way as a handle opening. The familiar comparison focuses on the handle’s through-passage, not simply on the fact that the mug can hold liquid.

What counts as a “hole” in this example?

In casual explanations, people often say that a mug and a doughnut each have one hole. This is a useful starting point, but the technical picture depends on what is being treated as the object. Mathematicians commonly simplify the objects into ideal shapes and examine their surfaces or their solid interiors.

One useful model is a solid torus: a thick ring, like a doughnut with all its material included. Its boundary is the surface around the ring. A handle-shaped mug can be idealized so that its material also has one handle passage. Under suitable simplifications, its surface has the same basic topological feature as the torus surface.

Real objects have details that the model ignores. A mug has a rim, a specific wall thickness, and an open drinking cavity; a pastry has a particular texture and may not have a perfectly open center. Those differences matter to engineering, cooking, and ordinary use. They do not necessarily change the simplified topological classification, provided the idealized objects preserve the same essential connection pattern.

How mathematicians describe the shared feature

A common way to classify simple closed surfaces is by genus. In plain language, genus counts the number of handles on a surface. A sphere has genus zero, because it has no handle-like passage. The surface of a doughnut-shaped ring has genus one, because it has one.

For the idealized mug, the handle supplies the corresponding handle-like feature. Its surface can therefore be compared with a genus-one surface. The mug’s exact curves are unimportant to this count: a narrow handle and a broad handle still contribute one handle, as long as the passage remains connected and does not split into separate openings.

Genus is not simply a count of every visible hollow. A bowl-shaped depression does not add a handle. Nor does a decorative groove. The useful question is whether the surface has a passage that changes how it connects. This is why topology can distinguish a ring from a ball even if both are made from the same material and have similar dimensions.

Why stretching cannot change the answer

Topology relies on properties that survive the permitted transformations. A mug can be stretched until it is long and narrow, or compressed until it is squat. A doughnut can be made wider or thinner. These changes affect measurements such as length, area, and volume, but they do not alter the number of passages.

To turn a one-hole object into a no-hole object, something more drastic would have to happen. The handle would need to be cut, the doughnut would need to be sliced open, or the opening would need to be sealed by joining material across it. Each operation changes the object’s connections rather than merely changing its shape.

This gives a practical test for many topology puzzles: ask which transformations are allowed. If stretching and bending are allowed but cutting and gluing are not, look for features that cannot disappear under those movements. The number and arrangement of passages are often more revealing than the outline.

Why the mug example is helpful—and where it can mislead

The mug is memorable because it turns an abstract idea into a familiar comparison. A handle is something readers can point to, and a doughnut’s center makes the corresponding passage easy to see. The example shows that mathematical sameness does not always mean visual resemblance or everyday interchangeability.

Still, the slogan can be misleading if taken literally. A real mug is not made of infinitely flexible material, and its open cup shape is not the same as a pastry’s ring shape in ordinary geometry. The claim is about idealized forms under a particular mathematical definition, not about physical objects being interchangeable or identical in every property.

It is also helpful to distinguish the handle from the mug’s interior. The liquid-holding cavity is a bowl-like hollow bounded by the cup walls and bottom, open at the rim. The handle opening is a separate passage through the overall form. The popular comparison concerns the latter feature, treated in a simplified model of the mug.

More than a quirky comparison

The idea behind the mug and doughnut is useful because it teaches a general way to classify shapes. Instead of asking whether two objects look alike, mathematicians can ask whether their essential connections match. This approach appears in many areas of mathematics, where complicated forms may be grouped by features that remain unchanged under continuous deformation.

Topology is also relevant to practical fields, although the mug analogy itself is not an engineering rule. In computer graphics, for example, the connectivity of a modeled surface can matter when software represents or edits it. In the study of networks, researchers may examine connected paths and loops rather than physical shape. These applications use broader mathematical ideas, not simply a literal comparison between household objects.

The central lesson is modest but powerful: shape has more than one meaning. Geometry emphasizes quantities such as distance, angle, and curvature. Topology focuses on continuity and connection. Two objects can be very different geometrically yet share an important topological structure.

Conclusion

A mug with a handle and a ring doughnut are called alike in topology because each can be idealized as having one handle-like passage. If they are treated as flexible shapes that may be bent and stretched but not cut or joined, their detailed appearance does not change that shared feature. The comparison is a clear reminder that mathematics can classify objects by how they connect, not only by how they look.