The first federal surplus occurred in the 2001 legislative session. Therefore, the year when the U.S. experienced a federal surplus rather than a deficit is 2001.

The answer is boxed{2001}.

Exit mobile version