The court also imposed a fine of Rs 5,000 on Jagdish alias Jagga, the convict.
The sentence was pronounced by District Judge R K Dube.
According to prosecution, the incident took place at Parlapura village of the district on March 9, 2014.
Jagdish lured the girl, who had stepped out to fetch water from a hand pump, by offering her a biscuit and raped her. When she started screaming, he killed her and hid the body in a field.