Kazi Islam, from Manor Park in east London, was charged under Section 5 of the Terrorism Act 2006.
Mr Islam, who was arrested in August, is currently remanded in custody.
He is expected to appear at Westminster Magistrates' Court on Thursday.
An 18-year-old man has been charged with preparing to commit acts of terrorism.