The **cocountable topology** or **countable complement topology** on any set *X* consists of the empty set and all cocountable subsets of *X*, that is all sets whose complement in *X* is countable. It follows that the only closed subsets are *X* and the countable subsets of *X*.

Every set *X* with the cocountable topology is Lindelöf, since every nonempty open set omits only countably many points of *X*. It is also T_{1}, as all singletons are closed.

If *X* is an uncountable set, any two open sets intersect, hence the space is not Hausdorff. However, in the cocountable topology all convergent sequences are eventually constant, so limits are unique. Since compact sets in *X* are finite subsets, all compact subsets are closed, another condition usually related to Hausdorff separation axiom.

The cocountable topology on a countable set is the discrete topology. The cocountable topology on an uncountable set is hyperconnected, thus connected, locally connected and pseudocompact, but neither weakly countably compact nor countably metacompact, hence not compact.