For 2018, you’re allowed to contribute the lesser of $26,230 or 18% of your earned income for the previous year. If you made contributions to a pension plan, your room will be reduced accordingly. As well, if you have unused contribution room from previous years, those amounts carry forward indefinitely.

For more information about RRSPs, please see THIS LINK.