The actual cost of a flat roof depends on your location, the materials used, the complexity of the installation, and other factors. 1  Building a flat roof costs approximately $1.50 to $10.00 per square foot. 2  Assuming an average roof size of 1,500 square feet, that s a total cost of $2,250 to $15,000.