The cost of building a fence around your house can vary depending on various factors such as the materials used, the size of the fence, and any additional features. On average, homeowners can expect to spend anywhere from $1,500 to $4,000 for a basic residential fence.