The cost to build a detached garage can depend on permits, garage size, and added features and can range from $14,000 to more than $30,000.