Yes, you can buy a house after filing for bankruptcy, though you will generally need to wait for a "seasoning period" to pass before a lender will approve your mortgage application . This period typically ranges from depending on the type of bankruptcy you filed and the kind of loan you are seeking. Waiting Periods by Loan and Bankruptcy Type
The clock for these waiting periods usually starts from your (when the court legally clears your debt), not the date you filed. Can you buy a house after bankruptcy? | Rocket Mortgage