The murderer of US gay teen Larry King (pictured) will spend 21 years in prison under a plea bargain struck by prosecutors in Ventura County, California.

Brandon McInerney was 14 when he shot King twice in a school computer lab at the EO Green School in the city of Oxnard three years ago.

The now 17 year old struck a bargain in which he would be released from prison when he is 38 on the condition that he pled guilty to second degree murder and voluntary manslaughter charges.

An initial trial had ended in a hung jury after some jurors objected to McInerney being trailed as an adult when he was 14 when he committed the crime.

McInerney will be transferred to an adult jail when he turns 18 and will stay in prison until he is released in 2032.

Following the announcement, Larry’s father Greg King said he was satisfied with the sentence.

“Twenty-one years is a long time,” King said. “At the end of the day, this is something we can live with.”

© Star Observer 2018 | For the latest in lesbian, gay, bisexual, trans* and intersex (LGBTI) news in Australia, be sure to visit starobserver.com.au daily. You can also read our latest magazines or Join us on our Facebook page and Twitter feed.