Do you have to file for bankruptcy if you loose your house to foreclosure?

No, but the reason that many people do, particularly if the house is "upside down" (i.e., you owe more on it than what it is worth) is because without filing bankruptcy in most states you will continue to owe the difference between what the lender was able to sell it for and what you owed when it was repossessed. (This is called the "deficiency.")

So for example (simple example) if you owed $150,000 on the mortgage when it was foreclosed, and the bank was able to sell the house at auction for $100,000 ... in most states (tho not California) you would still owe $50,000 on a house you no longer own.

Bankruptcy can discharge that debt.

Another reason people often file bankruptcy when they receive a foreclosure notice is to save the house. Bankruptcy can put a halt to the foreclosure proceeding and allow the homeowner a period of 3-5 years to catch up on any arrears (in Ch 13).

But there is no reason why a person HAS to file bankruptcy when you lose your home to foreclosure. It is up to the individual.
...............................................................................
Contact a local bankruptcy attorney to find out what you qualify for, most will see you free the first consultation. They will look at your income for the past 6 months, debts, assets and taxes for the last 3 or 4 years and will be able to tell you what you qualify for. You can get more bankruptcy information at their official website @ www.usbankruptcy.gov Good Luck!
...............................................................................
No, bk and foreclosure are two different things. the foreclosure only applies to the house.