Listen for the stressed syllable
Say pienso, piensas, piensa out loud. Each form puts the emphasis on pien-. Now say pensamos, pensáis. The stronger syllable is in the ending, leaving pen- unstressed. Finally, piensan brings the stress back to the first syllable. That gives you four forms with ie and two with e.
Stress tells you where to expect the change once you know that a verb belongs to this group. It doesn’t tell you which verbs belong. For example, dejarkeeps its e in dejo even though that syllable is stressed. Learn the infinitive with one changed form, such as pensar, pienso. Then check the corresponding “we” form to hear the difference.
Use the two stems in sentences
¿Piensas en las vacaciones? asks “Are you thinking about the vacation?” If you and another person are both thinking about it, you can answer Sí, pensamos en las vacaciones. The phrase en las vacaciones stays the same. The person and the stress change together.
You can also use pensar que to introduce an opinion. Marta piensa que la tienda está abierta means “Marta thinks the shop is open.” With two people holding that opinion, write Marta y Luis piensan que la tienda está abierta. Both forms keep ie. The plural subject adds -n to the verb while the opinion itself stays the same.
Check the ending and the tense
Two slips are easy to make when you work from the infinitive: writing penso for “I think” and writing piensamos for “we think.” Check the stress before changing the vowel. In pensáis, write the accent on á just as you would in a regular form such as habláis.
Keep the tense in view too. Pienso en eso ahora means “I’m thinking about that now.” Ayer pensé en eso means “Yesterday I thought about that.” The past form pensé keeps e and uses the accented preterite ending. Compare it with pensaba, which can describe a thought you kept returning to. If a question gives you a tense, choose the set of forms before you choose the stem.