It depends on the type of carpet and the machine you use. Some handheld carpet cleaners have a blower function to dry the carpet after shampooing. But in general, it’ll take an hour to a few hours for the carpet to dry out.