Deductions & credits

Except for §1.121-1(e) [business use of the property], §121 uses the same rules and definition as §280A(f).  For §280A(f), a Dwelling Unit includes "all structures or other property appurtenant to such dwelling unit", such as a garage.

Otherwise, any detached garage for any sale (including the combined sale with the house) would be subject to tax.