Before turning to law, Rai first graduated from UCL with a degree in Classics. He subsequently obtained his LLM and BPTC from BPP in London.
In his legal dissertation, Rai focussed on property law, particularly the disparity between the powers of landlords and tenants. In his spare time, Rai has worked pro-bono for legal clinics in London offering debt and insolvency advice. He is also a keen debater and public speaker, having been President of the Conservative Society in his final year at UCL, and later a member of the BPP Mooting Society.