Question: are gandalf and sauron the same race?
Answer: Yes. Gandalf and Sauron are both of the race of Maiar. Maiar are kind of like angels in Tolkien's mythology. They are the servants and helpers of the Valar, the gods or 'Powers of the World.