Measure the length of the edge of the hardwood floor, where the carpet meets the floor, with a measuring tape.
Cut a length of carpet tackstrip equal to the distance found in Step 1 with metal snips.
Measure the thickness of the carpet with a measuring tape.
Position the tackstrip against the floor, leaving a gap between the tackstrip and the wood floor equal to 2/3 of the thickness of the carpet. For example, if the carpet is 3/4 inches thick, position the tackstrip so that a gap of approximately 1/2 inches exists between the edge of the tackstrip and the edge of the wood floor.
Secure the tackstrip to the floor by driving nails through the tackstrip with a hammer.
Roll the carpet over the tackstrip and mark the edge of the carpet approximately 1/8 inches past the point where the carpet meets the floor with a marker. This extra 1/8 inches is what is tucked between the tackstrip and the wood floor.
Expose the back of the carpet and draw a cutline across the back of the carpet starting with the mark made in Step 6.
Cut through the back of the carpet with a utility blade to remove the excess material.
Stretch the carpet towards the tackstrip with a knee kicker tool. The teeth of the tool grip the carpet. Tap on the tool's knee pad with the top of your knee to drive the carpet towards the tackstrip.
Press the carpet into the tackstrip.
Tuck the edge of the carpet into the 1/8 inch gap that exists between the tackstrip and the edge of the wood floor with a stair tool.