Every Japanese verb belongs to one of three groups. The group decides how the verb changes for politeness, tense, negation and more. Learn the group first, then the endings.
The three groups
Group 1, godan (五段). The last kana changes row: かく → かかない, かきます, かけば. Most verbs are here, including every verb that does not end in る.
Group 2, ichidan (一段). Drop る and add the ending: たべる → たべない, たべます, たべれば.
Irregular. Only する (to do, and every noun + する) and 来る (to come).
How to tell them apart
If the verb ends in anything other than る, it is godan.
If it ends in る and the kana before it is from the い row (い き し ち に ひ み り) or え row (え け せ て ね へ め れ), it is usually ichidan: たべる, みる, おきる.
If the kana before る is from the あ, う or お row, it is godan: とる, のる, ある.
A short list of verbs look ichidan but are godan. Learn these as exceptions.