When using the term as an adjective before a noun, e.g., the 400 square foot building, use foot. Otherwise, use the plural feet, e.g., the building is 400 square feet.
actually i just realized that there is no such thing as 'square feet' and i have been using it incorrectly forever.
foot is a unit. we have 1 square foot, 2 square feet, and so on. square foot is a unit, which is the square of foot. so i dont know what square feet is. if there is any plural form, it should be 'square-foots.'