I will talk about the muon anomalous magnetic moment and give an overview of the main theoretical errors involved in the determination. I will discuss in more detail electromagnetic finite volume corrections to the hadronic vacuum-polarization and short-distance aspects of the hadronic light-by-light contribution.