The cost of building a swimming pool can vary between $17,000 and $45,000, with the national average sitting at about $30,500. These figures account for both in- and above-ground pools. In addition, there are maintenance and operational costs.