us presidents that were assassinated while in office
List of Presidents of the United States who died in office
William Henry Harrison holds the record for shortest term served , holding the office of presidency for 31 days before dying . Harrison was the first president to die while in office when he caught pneumonia and died on April 4 , 1841 . On July 9 , 1850 , Zachary Taylor died from acute gastroenteritis . Abraham Lincoln was the first president to be assassinated . He was shot by John Wilkes Booth on April 14 , 1865 . Sixteen years later , on September 19 , 1881 , President James A. Garfield was assassinated by Charles J. Guiteau . Nearly twenty years after that , President William McKinley died from complications after being shot twice by Leon Czolgosz . President Warren G. Harding suffered a heart attack , and died on August 2 , 1923 . On April 12 , 1945 , Franklin D. Roosevelt collapsed and died as a result of a cerebral hemorrhage . The most recent president to die in office was John F. Kennedy , who was assassinated with two rifle shots on November 22 , 1963 , in Dallas , Texas . 
William Henry Harrison holds the record for shortest term served , holding the office of presidency for 31 days before dying . Harrison was the first president to die while in office when he caught pneumonia and died on April 4 , 1841 . On July 9 , 1850 , Zachary Taylor died from acute gastroenteritis . Abraham Lincoln was the first president to be assassinated . He was shot by John Wilkes Booth on April 14 , 1865 . Sixteen years later , on September 19 , 1881 , President James A. Garfield was assassinated by Charles J. Guiteau . Nearly twenty years after that , President William McKinley died from complications after being shot twice by Leon Czolgosz . President Warren G. Harding suffered a heart attack , and died on August 2 , 1923 . On April 12 , 1945 , Franklin D. Roosevelt collapsed and died as a result of a cerebral hemorrhage . The most recent president to die in office was John F. Kennedy , who was assassinated with two rifle shots on November 22 , 1963 , in Dallas , Texas .
Abraham Lincoln, James A. Garfield,  William McKinley and  John F. Kennedy were assassinated while in office.
Abraham Lincoln was the first president to be assassinated . Sixteen years later , on September 19 , 1881 , President James A. Garfield was assassinated by Charles J. Guiteau . Nearly twenty years after that , President William McKinley died from complications after being shot twice by Leon Czolgosz . The most recent president to die in office was John F. Kennedy , who was assassinated with two rifle shots on November 22 , 1963 , in Dallas , Texas .