Any process involved in the maintenance of an internal steady state of cadmium ions within an organism or cell.