How to Make a Garden Fence From Upcycled Pallets

Keep critters out of your garden with this inexpensive fencing alternative that can also serve as planters.

Updated on March 26, 2026

Related To:

Photo by: Tomas Espinoza

Tomas Espinoza

Who doesn’t love a repurposed pallet or four? If you don’t, you’re about to. This pallet fence and gate is better looking than wire fencing and cheaper than a picket fence. See how we turned a bunch of old pallets into a combination fence and planter.

Tools and Materials

  • pallets (three for every 10-foot section)
  • (1) standard exterior gate latch
  • (3) 3” standard exterior gate hinges
  • deck screws
  • 1x4 x 12' lumber (2 for every 3 pallets)
  • 4x4 posts for the vertical supports
  • felt, landscape fabric or burlap
  • hammer
  • crowbar
  • staple gun
  • hand shovel
  • potting soil
  • plants
  • garden gloves and safety goggles

How to Make a Pallet Fence

1. Prep the Pallets

Look the pallets over good and remove any errant nails and sand off any rough spots.

Photo by: Tomas Espinoza

Tomas Espinoza

2. Remove Some Planks

Determine where on your pallets you’ll be adding plants. On our gate, we removed a couple of inner planks so we could have more room for plants. Use a hammer and crowbar to remove or pry off the planks.

3. Make the Plant Pockets

Determine where you’ll be adding plant pockets. Lay the landscape fabric (we used felt) so that it drapes into the middle of the pallet. Use a staple gun to attach the fabric lining to the interior of the pallet boards.

4. Determine the Fence Layout

Standard shipping pallets are 40” x 48”. We laid ours with the 40” as the horizontal and the 48” as the vertical. Thus, three shipping pallets standing side-by-side was 10 feet long and 48 inches tall. So, we spaced our 4x4 vertical support posts 10 feet apart in order to fit three pallets in between each post.

5. Install Vertical Fence Posts

Start by installing the 4x4 posts at the corners of your garden; these will serve as your vertical fence supports. Our corner 4x4 posts extend far above the ground to frame our garden and provide a place to hang string lights. If you don’t want your posts that tall and would prefer them flush with the top of the pallets, cut the 4x4s down to 64 inches and bury the bottom 2 feet in the ground so your posts stand 40 inches above the ground.

6. Install Horizontal Fence Supports

To help support the pallets upright, we fastened two 12-foot long 1x4 boards between each post. Use 2" deck screws to fasten the first 1x4 a few inches off ground between the 4x4 posts. Then attach the second 1x4 about 36” off the ground.

Photo by: Tomas Espinoza

Tomas Espinoza

7. Fasten Pallets to Supports

Place the pallets upright against the 1x4s, then use deck screws to fasten the pallets to the 1x4s.

8. Add a Gate

If you want to add a gate to your garden fence, you'll need to install two vertical posts about 42 inches apart to hold the gate. The opening of the gate needs to be slightly bigger than the pallet so it will swing open easily. Center three hinges to the top, center and bottom of the pallet on either the right or left side, then attach to the support post. On the opposite side of the pallet, attach a latch to the top and then attach the latch's catch to the support post.

Photo by: Tomas Espinoza

Tomas Espinoza

9. Fill Plant Pockets

With the pallets in place, fill the plant pockets with soil and plants. Annual flowers, lettuces and herbs are all great choices for your pallet garden.

Photo by: Tomas Espinoza

Tomas Espinoza

Next Up

How to Install Garden Lights

Whether you're after that cozy glowing garden look or you simply need to safely traverse your garden after nightfall, here are simple steps for installing garden lighting.

How to Make DIY Wind Chimes With Copper Pipes

Learn how to make wind chimes — outdoor art pieces that sound as pretty as they look — with this easy step-by-step guide.

How to Make Homemade Dusting Spray and Where You Can Use It

This spray makes quick work of removing dust, and it repels dust from settling in the future. Best of all: You already have the ingredients at home.

How to Mulch for the Healthiest Yard and Garden

How to lay mulch in 5 easy steps, plus a complete guide to commonly asked questions like how to determine how much mulch you need.

What Is Midimalism? Here's How to Make the Trend Work in Your Home

This year’s have-it-both-ways design trend pairs minimalist serenity with lived-in, maximalist layering. Our designer-approved tips will make your spaces feel soothing and interesting all at once.

How to Improve Old, Worn-Out Soil for Healthier Plants in Pots and Gardens

Now is an ideal time to refresh worn-out soil so you can grow healthier, more vigorous plants in containers and your garden.

How to Paint Terracotta Pots for a Garden Glow Up

Here, everything to know about painting terracotta pots, including three creative ways to transform them with step-by-step photos.

7 Mistakes Everyone Makes Setting Up Raised Garden Beds

Small mistakes can result in big headaches—and ruin your harvest before it even starts. Here's how to set your raised garden bed up for success.

How To Make a Paper Crane

Learn how to craft your own flock with this simple tutorial.

10 Home Projects To Tackle This Summer

Make the most of the long summer days ahead and elevate your casa with home project ideas with Scout & Nimble.