Let's see if I count all the ways.

There are 4 vowels in the word and they can be placed one on either end in

P(4,2)=12 ways. Place two of the vowels and arrange the other 6 letters in 6!=720 ways.

720*12=8640 ways to arrange GRACIOUS with a vowel on the ends.