try to use flashcards, use them in a sentence, memorize them... unfortunately there's no formula or construction to know how to conjugate an irregular verb in Spanish. The good thing is, that most irregular verbs (ser, estar, ir, dar, saber) are used very often, you will see them very often you will remember them eventually.