Clean out the gap between the foundation and sidewalk with a long wire brush. Chip off any hard debris or caulk stuck on the sides with a hammer and a chisel.
Measure the width of the gap with measuring tape. If it’s wider than 1/2 inch, you’ll need to fill in the gap with an expansion joint like foam backer rod. If it’s less than a 1/2 inch wide, you can fill in the whole gap with caulk.
Place a strip of foam backer rod on top of the sidewalk parallel to the gap. Use a utility knife to cut the rod to fit the length of the gap. If the rod is not long enough, cut another piece to fit the remaining space.
Lay the foam backer rod on top of the gap and push it down with your hands. If you’re using two lengths of rod, push these down so the ends are flush. Use the blunt end of a putty knife to hit the rod down to the bottom of the gap.
Load silicone latex caulk into a caulk gun and snip off the end with scissors. Fill the remaining gap with the caulk until its level with the sidewalk. Hold a putty knife level with one side over the pavement and the other over the caulk. Run the knife slowly down the length of the gap to remove excess and to ensure that the caulk is level.