Since Giza is just about 15–40 minutes away from Cairo by car (depending on where in Cairo you are staying), getting a taxi is easy and recommended if you're planning to visit the pyramids independently. Your hotel will be able to help you flag one down, and you likely will be paying around 2–4 US dollars one way.