What was Barack Obama's age when he first became president?

President Barack Obama was 47 years old at the time of his inauguration. He was born on August 4th, 1961.