US-FAA14 CFR 91.303
Aerobatic flight
Read the official ruleOfficial FAA regulation text (public domain)
No person may operate an aircraft in aerobatic flight— (a) Over any congested area of a city, town, or settlement; (b) Over an open air assembly of persons; (c) Within the lateral boundaries of the surface areas of Class B, Class C, Class D, or Class E airspace designated for an airport; (d) Within 4 nautical miles of the center line of any Federal airway; (e) Below an altitude of 1,500 feet above the surface; or (f) When flight visibility is less than 3 statute miles.
Verbatim text of a US Federal Aviation Regulation (public domain), reproduced for reference — not legal advice and not for navigation. A plain-English explainer may be added later; always rely on the current official rule linked above.