We analyze fiscal consolidations using a New-Keynesian model where agents have finite planning horizons and are uncertain about the future state of the economy. Both consumers and firms are infinitely lived, but only plan and form expectations up to a finite number of periods into the future. The length of agents' planning horizons plays an important role in determining how spending cuts or tax increases affect output and inflation. We find that for low degrees of relative risk aversion spending-based consolidations are less costly in terms of output losses, in line with empirical evidence. A stronger response of monetary policy to inflation makes spending-based consolidations more favorable as well. Interestingly, for short planning horizons, our model captures the positive comovement between private consumption and government spending observed in the data.