,,:to Close" certainly means different things to different people. Buying a Foreclosure is a process, and can be lengthy. Closing, typically means once you are in contract and the offer has been accepted. That time can be quick for the all cash buyer, perhaps as fast as 2 weeks to close. As for the process, there are may factors which delay paperwork and stages, So not all Foreclosures are the same. Some are in or will be going to an auction. If the Bank does not sell it in auction it comes back to them and they somehow determine the price which may be far more than what you see. If it was a government loan such as a VA , FHA or a few others. Then the process can take even longer.
There are even different stages of Foreclosure where the previous owner can redeem theirselves and re-acquire the home. No doubt there can be advantages of purchasing a Foreclosed home. Equally so there can be pitfalls as the home in question typically is AS IS and many disclosures may not be there to protect you. You also have a huge chance of investors out bidding you as they do this for a living. Point is to answer your question," How Long" that simply depends!.. Find a realtor who deals who foreclosures, their commission should come from the bank side and a free service for you.