It mostly depends on how damaged your credit history is and which steps you take to build it again. More major credit events, such as bankruptcy, debt settlement, foreclosure, and loan default, will take longer to recover from, and negative items can stay on your credit reports for seven to ten years
