Nouns ending in -in are usually masculine.
(Words ending in -ain, -ein, -oin, -aim, or -uin follow different rules.)
Je suis allé au magasin d'à côté.
I went to the store near by.
Le magasin vend des journaux et des magazines.
That store sells newspapers and magazines.
Allez tout droit et vous verrez le magasin.
Go straight on, and you will find the store.
FrenchTextbook teaches rules like this, in a full beginner course.
162 lessons, 4,000+ exercises, and 6+ hours of audio.
Try the first lesson free