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