Chapter 7 bankruptcy cases typically take 4 to 6 months, as long as the paperwork is filed correctly and there are no major delays. Selling property to pay off debt may cause a short delay.
Chapter 13 cases take much longer because they are contingent upon the payment plan the court makes for you. Most repayment plans take between 3 to 5 years.