If your court is going in your backyard, it's probably going to be half court (or a very small full court). For this, you really only need about 20 feet of space. If it's going to be a full court, you'll need around 100 feet in length and about 60 feet in width.
Select where your hoop will be positioned. Outline this area in chalk. Next, sketch out the painted area, foul line and the top of the key. Use your basketball stencil kit. You can get one online for as low as $29.99 at MCSports.com or at stores such as Dick's Sporting Goods.
Select which type of basket you want to purchase. Wall-mounted basketball hoops are cheaper; you can get one for less than $100. Portable hoops will run you a little more, but you can still score one for less than $150. You also can look for used hoops, though you should inspect them before buying them.
Set up the basket. If you purchased a wall-mounted hoop, follow the instructions carefully. If you have a portable hoop, make sure the base has enough weight to ensure stability. Some models call for filling the base with sand or water. Place the portable hoop 2 to 3 feet from the baseline, out of bounds, so players do not run into the base or station during play.
You can paint your court, but it's not necessary. Also, if you have room, you can paint the 3-point line; the college 3-point line is 20 feet, 9 inches, while the pro line is 23 feet, 9 inches. The foul line is 15 feet for both college and pro.