How many years before you can apply?
Five years in total: one year of continuous reckonable residence immediately before the application, plus four years within the eight years before that. In the final year you may spend up to 70 days abroad without breaking continuity.
Not every permission counts. Time on a student permission, for example, is excluded from reckonable residence, so a graduate who stayed on after a degree often has fewer counting years than the calendar suggests.
Spouses and civil partners of Irish citizens follow a shorter test: three years of marriage and three of the last five years resident in Ireland.