The cost to build a garage ranges from $35 to $60 per square foot on average, or $19,600 to $28,200 total for a 2-car garage. Most 2-car garages are 400 to 576 square feet in size.
A 2-car detached garage costs $20,000 to $57,600, depending on the material quality and finishes. A detached garage usually costs more than an attached garage because it has one more wall and is further from the home's electrical and plumbing connections.
Prefab or modular garage prices are $7,200 to $26,000 on average for a 2-car garage kit alone or $11,000 to $37,500 including installation and a concrete slab foundation. However, many HOAs don't allow prefab garages because some basic kits can be unsightly, which may lower property values.
Building a garage with an apartment costs $200 to $350 per square foot or $80,000 to $300,000 total on average, depending on the size. Adding an apartment to a prefab detached garage costs quite a bit less than a custom attached build.