Wipe the baseboard with a clean cloth, removing all dust and dirt.
Sweep the carpet next to the baseboards. Use a sweeper attachment to dig between the baseboard and the carpet to remove hidden dirt.
Apply painter's tape along the wall at the top of the baseboard. Lay dropcloths or old sheets on the carpet or floor 2 to 3 inches from the baseboard.
Slide a thin sheet of poster or cardboard between the carpet or floor and the baseboard. The poster or cardboard keeps the paint from touching the flooring.
Paint the baseboard with a 3-inch paintbrush. Use back-and-forth gliding motions to apply the paint. Allow the paint to dry for two to three hours.
Peel the painter's tape from the wall above the baseboard. Press the poster or cardboard down gently on the carpet and pull it from the baseboard. On flat flooring, gently wiggle the cardboard so it can loosen without removing paint from the baseboard. Remove and discard the cardboard into a trash can.