from a earlier post:
Yes. You can generally e-file the currently due tax year and two prior years. Currently, tax year 2019 and tax year 2017 returns can be e-filed. Tax year 2018 federal e-filing will be available in late February, due to IRS extender updates passed recently. Extension filings are only available for the currently due tax year.