You can create subscription products for any length of period using the fixed period subscription. The period is set in days ie 1095 days for 3 years, or 1825 days for 5 years.
Fixed end date subscriptions can only be configured for annual or monthly subscriptions.