What moves the price, factor by factor
How big the affected area is
Square footage is the base of most estimates. It is measured on the surfaces that need work, not on the floor plan: the sheathing between rafters, the face of the wall cavity, the joists and subfloor overhead in a crawl space. Measured that way, a modest-looking patch can cover more area than you expect once the wall is opened.
Clean in place or remove
Solid wood and other hard surfaces can usually be cleaned. Porous materials are different. EPA notes that absorbent materials such as ceiling tiles and carpet "may have to be thrown away if they become moldy" (EPA, mold cleanup in your home). Every sheet of drywall, batt of insulation and length of carpet pad that comes out adds labor, bagging and disposal, and later rebuild.
How hard it is to reach
An open attic with good headroom is quicker than a low attic over a cathedral ceiling. A crawl space with three feet of clearance is quicker than one with eighteen inches and a soil floor. A house reached by a long flight of steps from the street adds carrying time for every bag and machine.
Containment
Containment keeps spores and dust out of the rest of the house: plastic sheeting, sealed doorways, and HEPA air filtration that keeps the work area under negative pressure. EPA's remediation guidance scales containment with the size of the job (EPA remediation guide, chapter 3). A small, isolated area needs little; a lower floor with growth in several rooms needs much more.
The moisture fix
This is the line people forget, and it decides whether the money spent on removal lasts. EPA is blunt: if you clean up the mold but don't fix the water problem, "the mold problem will come back" (EPA, A Brief Guide to Mold, Moisture and Your Home). The fix might be a bath fan ducted outdoors, a repaired supply line, a new crawl space liner, or drainage work by another trade. A good scope names it and says who does it.
Drying and verification
Materials have to be dry before anything is closed up. That means dehumidifiers and air movers, and moisture readings to confirm the result. In a cold, wet month, drying can run longer.
Rebuild
Replacing drywall, insulation, trim, flooring and paint is often a separate line or a separate contractor. Ask whether a quote includes it. Two prices can look far apart simply because one includes rebuild and the other stops at clean, dry framing.