Every Canadian who is 18 years of age or older, gets $5,000 of contribution room per year.
If you make a contribution, then the amount of available contribution room is reduced by the amount of the contribution.
If you make a withdrawal, then that withdrawal amount will be added to your available contribution room, starting January 1 of the following calendar year.