When is Y Considered a Vowel?

The letter ‘Y’ is considered a vowel when in words that it is proncounced to sound like the letter ‘I’, as well as in words where it follows or is pronounced to sound like any other vowel, or is a silent letter. For example, in both the words ‘my’ and ‘money’, the letter Y would be considered a vowel.