calc-undo-length

calc-undo-length is a variable defined in `calc.el'.
Its value is
100


Documentation:
The number of undo steps that will be preserved when Calc is quit.

You can customize this variable.