Direct answer
There is more than one way to sort fungi, and which one you use depends on the question. The three most common approaches are by form (mushrooms, molds, yeasts), by major lineage (phyla such as Ascomycota and Basidiomycota), and by lifestyle (decomposers, parasites, partners of plants). They overlap rather than competing.
Types by form
- Mushrooms form visible fruiting bodies, usually cap-and-stem structures, though other shapes exist, such as brackets, puffballs and coral-like forms. See mushroom vs fungi.
- Molds grow as fine filaments, often microscopic, and make spores in large quantity. See mold vs mushroom.
- Yeasts mostly live as single cells. See yeast vs mushrooms.
These are descriptive labels, not formal groups. Different lineages can include molds, yeasts or both, and some fungi switch between forms.
Types by major group
Textbooks often present the “four types of fungi” or similar lists based on how the fungi reproduce sexually. Commonly named groups include:
- Chytrids (Chytridiomycota). Mostly aquatic, with spores that can swim. Considered among the earlier-diverging groups.
- Zygomycete-type fungi. A traditional group that includes many bread molds. Modern classifications have broken it into several smaller groups.
- Glomeromycota. Fungi that form arbuscular mycorrhizal partnerships with plant roots (see what mycorrhizal fungi are).
- Ascomycota (sac fungi). A very large group that includes many yeasts, molds, morels, truffles and many lichen-forming fungi. Spores are produced in sac-like structures called asci.
- Basidiomycota (club fungi). Includes most familiar gilled and pored mushrooms, along with puffballs, bracket fungi, rusts and smuts. Spores are produced on club-shaped cells called basidia.
Which of these is counted among the “four” varies by source, so check which list a course or textbook uses. Most mushrooms you would buy or grow belong to Basidiomycota. See fungal cell biology for how hyphae differ across groups.
Types by lifestyle
- Saprotrophs feed on dead organic matter. Many cultivated species are in this category. See how mushrooms feed.
- Mycorrhizal fungi form partnerships with plant roots. Some of these are hard or impractical to cultivate, as explained in what is the most difficult mushroom to grow.
- Parasites and pathogens attack living plants, animals, other fungi or, in a few cases, people.
- Lichen-forming fungi partner with algae or cyanobacteria.
- Endophytes live within plant tissues, often without obvious harm.
The ecological importance of these roles is covered in the role of fungi in the ecosystem.
Where common cultivated mushrooms fit
- Button, cremini and portobello (Agaricus bisporus), oyster (Pleurotus) and shiitake (Lentinula edodes) are in Basidiomycota and are saprotrophs.
- Morels are in Ascomycota and are much harder to cultivate reliably (see can you grow morel mushrooms).
A note on changing classification
Fungal classification has been revised repeatedly as DNA evidence accumulated (for the ranks themselves, see the 7 levels of classification for a mushroom). Older groupings based on appearance have been rearranged, and some names you see online are outdated. For the basics of what makes something a fungus, see what fungi are. For the scale of diversity, see how many fungi species exist.