National building codes, as outlined by the National Fire Protection Association (NFPA), require an outdoor aboveground pool to be at least 10 feet away from the walls of a house. This helps ensure that leaking or splashed water cannot contact any electrical wiring and cause a short.
While 10 feet is the minimum nationally required distance, homeowners should check local laws, building codes and home association rules before installing an aboveground pool. Some organizations have requirements that are more strict than the NFPA guidelines, and violating these local rules can result in hefty fines.
The best placement for a pool will vary, based on different installation factors. Generally, aboveground pools should be installed as far away from other structures as practically possible, in order to maximize safety.