31-year-old Liam Bolton, from Treboeth, Swansea, and 26-year-old George Payne, from St. Mellons, Cardiff, both entered an address on Grove Road, Pontardawe on February 4.
The car they stole was later found unattended without the key on Tudor Road, Treboeth.
Bolton pleaded not guilty to the offence of burglary dwelling and theft, but was found guilty on September 10. He has been sentenced to four years in prison.
Payne changed his plea to the same charge from not guilty to guilty in July. He was jailed for 30 months.
Detective Constable Andy Williams said:
“Criminals like Liam Bolton and George Payne are the sort of people who make others in their community feel unsafe in their own homes.
“To know that strangers have entered your home will be extremely distressing for anyone. However, these are two men who do not care about anyone else but themselves.
“It is good to see that both will be spending considerable time in prison as a result of their actions. The streets are safer without them out there waiting to prey on their next unexpecting victim.”
[Lead image: South Wales Police]