The Beijing Metro operates from 5am and 11pm. First and last trains have different schedules depending on the subway line.
The Airport Express operates from approximately 6 am until 11 pm depending on the direction.
To avoid the lines at the ticket machines, reusable Beijing Transportation Smart Cards are sold at the ticket counters.
Click Here for Information about the Beijing Yikatong Metro Card