Here in Australia, the regulation says "you should keep at least 5.5 km (3 nm [3.4 mi]) away from airfields, aerodromes and helicopter landing sites."
However, note the "should". As a recreational flyer, it seems it's not actually required to stay 5.5 km away from airports, as long as you don't...