Additional District Court judge Ajit Kumar Singh also imposed a fine of Rs 10,000 on each of the convicts, which if not paid would extend the term of imprisonment by one year.
Sanatan Mukhi (29) and Basant Mukhi (30) were convicted under various sections of the IPC and the Protection of Children from Sexual Offences (POCSO) Act.
Another person, who had been arrested in connection with the case, was acquitted due to lack of evidence.
The duo had raped the minor at Sangaria village under Baripada Sadar police station on August 5, 2013.