Lance Corporal Nigel Horsley had drunk 20 pints of beer before he attacked the animal, called Simba.
A court martial at Bulford, Wiltshire, heard how the 23-year-old soldier burst into a colleague's room at RAF Lyneham in Wiltshire, picked up the pet hamster and put a hot iron on its head for three seconds.
Warm up
Captain Nicholas Simpson, prosecuting, said: "When he removed the iron Simba was seen to have a brown burn mark down the back of her head, but the animal was alive at this stage."
Capt Simpson told the hearing Horsley then said: "I'm going to microwave this thing," and set off for the room with the oven.
Despite attempts to placate him with a can of beer and attempts by other soldiers to restrain him, Horsley placed the hamster in the oven and switched it on.
Drink problem
"He was heard to say 'I put it in for 30 seconds to warm up'," said Capt Simpson.
The lance corporal, who belongs to the 29th Regiment, Royal Logistic Corp, admitted disgraceful conduct at a court martial.
He was also charged with going absent without leave for two months last summer.
'Cruel and disgraceful'
He was demoted and jailed for 140 days for both offences.
Paul Grumbar, a barrister representing Horsley, said his client had been suffering from a drink problem at the time of the incident.
Judge Advocate General Jack Bayliss, who sat on the panel with three senior army officers, told Horsley as he passed sentence: "This conduct strikes at the very heart of discipline and sets the worst example possible.
"What you did to that animal was cruel and disgraceful. It was deliberate.
"Cruelty, whether to people or animals, has no place in the military ethos and any evidence of it will treated severely."
The BBC is not responsible for the content of external internet sites.
Next steps for peace
Blairs' surprise over baby
Bowled over by Lord's
Beef row 'compromise' under fire
Hamilton 'would sell mother'
Industry misses new trains target
Quins fightback shocks Cardiff
(From Sport)
Vodafone takeover battle heats up
(From Business)
IRA ceasefire challenge rejected
Thousands celebrate Asian culture
Christie could get two-year ban
(From Sport)
Colleagues remember Compo
(From Entertainment)
Mother pleads for baby's return
Toys withdrawn in E.coli health scare
Nurses role set to expand
(From Health)
Israeli PM's plane in accident
More lottery cash for grassroots
Pro-lifers plan shock launch
Double killer gets life
Cold 'cure' comes one step closer
(From Health)
Straw on trial over jury reform
(From UK Politics)
Tatchell calls for rights probe into Mugabe
Ex-spy stays out in the cold
Blair warns Livingstone
(From UK Politics)
Smear equipment `misses cancers'
(From Health)
Boyzone star gets in Christmas spirit
(From Entertainment)
Fake bubbly warning
Murder jury hears dead girl's diary
Germ warfare fiasco revealed
(From UK Politics)
Blair babe triggers tabloid frenzy
Tourists shot by mistake
A new look for News Online