The idea of putting up a wall between the U.S. and Mexico may not be so popular with people, but plenty of homeowners want their own border wall – that is, a fence around their property. After all, you may have young kids or dogs who you’d like to keep from running out into the street. You might want to keep the neighborhood children out of your garden, swimming pool or off a backyard trampoline. You may want a fence for privacy. You might just like how a fence looks.

But there’s a reason some people are reluctant to fence themselves in: Fences aren’t cheap. If you’re going to install one, there are several questions you’ll want to ask yourself first.

What type of fence do I want, and what can I have? Unfortunately, what you want may not be what other people want. “Many neighborhoods do not allow fences, so it is best to double-check with your local deed restrictions to see what is allowed and where,” says Frank Haun, a realtor with Bob Webb Homes, a custom homebuilder in Lewis Center, Ohio.

Cassy Aoyagi, co-founder and president of FormLA Landscaping, Inc., based out of Los Angeles, agrees. Whatever fence you get, she says, it needs to correspond with any community codes.

Beyond that, “Homeowners tend to be happiest with those that complement the design of their homes, personal style and the neighborhood,” Aoyagi says. “As strange as it may seem, these are things people often forget to think through before building.”

Bottom line: You should check beforehand and make sure there aren’t rules forbidding a certain type of fence that you want to put up, because if you have to take it down or modify it later, you’re going to be out a lot of money.