Mr. Irving, handcuffed and wearing a navy blue suit, arrived in court carrying a copy of one of his books, "Hitler's War," which challenges the extent of the Holocaust.
"I made a mistake when I said there were no gas chambers at Auschwitz," he told the court before his sentencing, at which he faced up to 10 years in prison.
"In no way did I deny the killings of millions of people by the Nazis," testified Mr. Irving, who has written nearly 30 books.
He also expressed sorrow "for all the innocent people who died during the Second World War."
Mr. Irving's lawyer, Elmar Kresbach, immediately announced that he would appeal the sentence.
"I consider the verdict a little too stringent," he said. "I would say it's a bit of a message trial."
Mr. Irving appeared shocked as the sentence was read. Moments later, an elderly man who identified himself as a family friend called out, "Stay strong, David! Stay strong!" The man was escorted from the courtroom.
Mr. Irving, 67, has been in custody since Nov. 11, when he was arrested in the southern province of Styria on charges stemming from two speeches he gave in Austria in 1989 in which he was accused of denying the Nazis' annihilation of six million Jews. He has contended that most of those who died at camps like Auschwitz were not executed, but instead succumbed to diseases like typhus.
He was denied bail by a Vienna court, which said there was a risk he would flee the country. He was convicted under a 1992 law, which applies to "whoever denies, grossly plays down, approves or tries to excuse the National Socialist genocide or other National Socialist crimes against humanity in a print publication, in broadcast or other media."
Mr. Irving's trial came during a period of intense debate in Europe over freedom of expression, after European newspapers printed caricatures of the Prophet Muhammad that set off deadly protests worldwide.









Teheran, Iran on Tuesday said the three-year jail sentence imposed by Austria on the British writer David Irving for denying the Holocaust clearly showed the ''Western paradox'' on freedom of expression.
Foreign Minister Manouchehr Mottaki said the West on the one hand claims freedom of expression but on the other, implements the opposite in practice.
He said that during his talks in Brussels on Monday in the European Parliament ''the deputies were not even willing to open this discussion.''