A homeostatic process involved in the maintenance of an internal steady state of a carbohydrate within an organism or cell.