Adhamon Mebrahtu has been handed 5 years while Jamie Osman was handed 3 years.
The pair followed their victim home after they met her on a tram in November 2018.
They forced their way into the building in which she lived and proceeded to sexually assaulted her in her own home.
The woman, who was 26 at the timE, reported the rape to police and detectives began to investigate.
Officers identified that during the assault the two men left stubbed-out cigarettes in the victim-survivor’s bedroom, providing vital DNA which was used to identify them.
Mebrahtu was also forensically linked to the woman.
The defendants denied any interaction with her when interviewed but detectives analysed hours’ worth of CCTV to disprove their lies.
Detective Constable Paul Harakis, who led the investigation, said “I would like to commend the bravery shown by the victim-survivor who has shown great courage and resilience throughout this difficult process.
“I’m proud we have been able to bring these dangerous offenders to justice and make London safer as a result. I hope they spend their time in jail to reflect on the devastating consequences of their abhorrent actions.
“Every woman and girl deserves to feel safe in the city they call home and we’re committed to continuing our mission to protect our communities from harm, eradicating sexual violence caused largely at the hands of predatory men.”