Why does my federal return change when I move on to the state return?

I have gone through my federal returns multiple times and should get a return. When I continue to the state returns the federal return changes to taxes due amount. Why is this?