We prove that the self-commutator of a Toeplitz operator with unbounded analytic rational symbol has a dense domain in both the Bergman space and the Hardy space of the unit disc. This is a basic step towards establishing whether the self-commutator has a compact or trace-class extension.