You can tell if a carpet is dirty by looking for visible stains, discoloration, or a dull appearance. Additionally, if the carpet feels sticky or has an unpleasant odor, it likely needs cleaning.