There is no hard and fast rule about what house is considered a mansion. In general, square footage is a factor.
For example, homes that are more than 8,000 square feet are considered mansions.
Moreover, in places where square footage is limited and expensive, smaller homes that use luxe building techniques are considered mansions.