Sorry this seems like a really stupid question but I'm a first time buyer and having trouble trying to work this out 
DH is selling his flat so that we can buy our first house together and is lucky enough to have a fair amount of equity in it (based on valuations), enough to fund a 45% deposit for the type of houses were looking at.
I'm trying to work out the budget for the moving costs; estate agent fees, conveyancing fees, survey, stamp duty etc. my question is do we need to have a separate upfront budget for all of these costs ready or would we be able to pay for any of them out of the equity released by the flat sale? (Provided the new mortgage makes up the the the total purchase price). How would that work? Or would that automatically be put towards the new house?