How far back a company background check goes will depend on the type of check being carried out. Different checks are typically associated with different time periods.
For example, lenders typically go back six years when doing a credit check. Criminal background checks typically cover seven years but can go back further depending on compliance laws and what is being searched. Your potential new employer can provide more details on the specific checks and how far back each one will go.