list of presidents of the united states by military service
Table:
President
Service
Rank
Active Service

Barack Obama
None
None
None

George W. Bush
Texas Air National Guard
First Lieutenant
Stateside service during Vietnam War (1968–1973).

Bill Clinton
None
None
Signed an agreement to join Reserve Officer Training Corps at University of Arkansas during Vietnam War, but subsequently withdrew and entered the draft. Was not drafted and did not serve.

George H. W. Bush
United States Naval Reserve
Lieutenant
World War II (1942–1945) Distinguished Flying Cross.

Ronald Reagan
United States Army Reserve, United States Army Air Corps
Captain
Stateside service during World War II (1942–1945); Army Reserve (1937–1942) See also: List of United States Presidents by military rank and Ronald Reagan for more information on military service.

Jimmy Carter
United States Navy
Lieutenant
World War II at the United States Naval Academy Sea duty and stateside service 1946-1953 during the Korean War.

Gerald Ford
United States Naval Reserve
Lieutenant Commander
World War II (1942–1945; combat on USS Monterey, discharged in 1946).

Richard Nixon
United States Naval Reserve
Commander
World War II (1942–1945) Earned two Service Stars.

Lyndon B. Johnson
United States Naval Reserve
Commander[1]
World War II received Silver Star medal after observation mission in which aircraft he was on came under Japanese attack.

John F. Kennedy
United States Navy
Lieutenant
World War II received Navy and Marine Corps Medal and Purple Heart

Dwight D. Eisenhower
United States Army
General of the Army
Stateside service during World War I. Served as Supreme Allied Commander in Europe during World War II (1942–1945). Visited troops in Korea in December 1952. Entire active-duty career spanned from 1915 until 1969 (excepting his two terms as president and Commander-in-Chief).

Harry S. Truman[2]
Missouri National Guard
United States Army, United States Army Reserve
Colonel
Stateside National Guard service in Missouri (1905-1911); World War I (1917–1918); transferred to Army Reserve and retired in 1953.

Franklin D. Roosevelt
None
None
None; Assistant Secretary of the Navy in World War I. Attempted to resign in order to enter uniformed service, but resignation not accepted. Visited France as part of Navy Department duties to observe military activities first hand.

Herbert Hoover
None
None
None; helped guide US Marines in 1900 during the Boxer Rebellion.

Calvin Coolidge
None
None
None

Warren G. Harding
None
None
None

Woodrow Wilson
None
None
None

William Howard Taft
None
None
None; United States Secretary of War 1904-1908

Theodore Roosevelt
United States Army
Colonel
Spanish–American War – only U.S. President to receive the Medal of Honor (awarded posthumously in 2001). Also a Navy Civilian, as Assistant Secretary of the Navy[3]

William McKinley
United States Army
Brevet Major
American Civil War. Served in the 23rd Ohio Infantry under future President Rutherford B. Hayes; fought in the Battle of South Mountain, The Battle of Antietam, and in the Valley Campaigns of 1864.

Benjamin Harrison
United States Army
Brigadier General
American Civil War; Commanded an Infantry Brigade at the battles of Resaca, New Hope Church, Kennesaw Mountain, Marietta, Peachtree Creek and Atlanta; also Commanded a Brigade during Sherman's March to the Sea.

Grover Cleveland
None
None
Paid George Benninsky $150 to take his place after Cleveland was drafted during Civil War under Conscription Act of 1863.

Chester A. Arthur
New York State Militia
Brigadier General
Served as Quartermaster General before and during the American Civil War (1858–1865).

James Garfield
United States Army
Major General
American Civil War (1861–1863; commanded an Ohio Infantry Brigade at the Battles of Shiloh and Corinth; served as Chief of Staff for General William Rosecrans at the Battle of Chickamauga; left the army to serve in the United States House of Representatives).

Rutherford B. Hayes
United States Army
Major General
American Civil War. Served in the 23rd Ohio Infantry and commanded future President William McKinley; wounded at the Battle of South Mountain; also served at the Battle of Antietam and in the Valley Campaigns of 1864.

Ulysses S. Grant
United States Army
General of the Army
Mexican-American War and American Civil War; served 1843-1854 and 1861-1868.

Andrew Johnson
United States Army
Brigadier General
Served in Tennessee Militia in 1830s. American Civil War; served as Military Governor of Tennessee in 1862.

Abraham Lincoln
Illinois State Militia
Captain
Black Hawk War (served three months in 1832); see Abraham Lincoln in the Black Hawk War.

James Buchanan
Pennsylvania State Militia
Private
War of 1812

Franklin Pierce
United States Army
Brigadier General
New Hampshire Militia, 1831-1846; Mexican-American War; commanded Infantry Brigade at Battle of Contreras (where his leg was injured), Battle of Churubusco, and the Assault on Mexico City.

Millard Fillmore
New York State Militia
Major
Served in New York Militia in 1820s and 1830s; Organized Union Continentals home guard unit in Buffalo, New York during American Civil War

Zachary Taylor
United States Army
Major General
War of 1812, Black Hawk War, Second Seminole War, Mexican-American War; entire career spanned from 1808 until 1848.

James K. Polk
Tennessee State Militia
Colonel
Joined cavalry unit in Tennessee Militia as a Captain. Subsequently appointed a Colonel on the staff of Governor William Carroll. Did not see war service.

John Tyler
United States Army
Captain
War of 1812

William Henry Harrison
United States Army
Major General
Northwest Indian War, War of 1812

Martin Van Buren
None
None
None; as State Senator during War of 1812 worked to pass war measures, including bills to expand New York militia and increase soldier pay. Prosecutor of William Hull at court-martial after surrender of Detroit.

Andrew Jackson
Tennessee State Militia, United States Army
Major General
American Revolutionary War, War of 1812, Creek War, First Seminole War

John Quincy Adams
None
None
None; however he was a witness to Battle of Bunker Hill in 1775 and reportedly was a non-participant in a Naval Battle between a British ship and a US ship he was on with his father during the American Revolution.

James Monroe
Continental Army
Major
American Revolutionary War; wounded at the Battle of Trenton; depicted holding the American flag behind General George Washington in the famous painting Washington Crossing the Delaware.

James Madison
Virginia militia
Colonel
American Revolutionary War, did not see action.

Thomas Jefferson
Virginia militia
Colonel
Administrative position, did not see action. As Governor of Virginia, fled during British raid to avoid capture

John Adams
None
None
Adams served as chairman of the Continental Congress's Board of War (1776–1777), making him the simultaneous equivalent of today's Secretary of Defense and Chairman of Senate Armed Services Committee; was a semi-participant in a naval engagement between a British and US ship during the American Revolution.

George Washington
Virginia militia, Virginia Regiment, Continental Army
General of the Armies
French and Indian War, American Revolutionary War.

For the Wikipedia table from the article the article 'list of presidents of the united states by military service', section '', pick the right types for the highlighted column from the type candidates provided: american_football.football_team, location.administrative_division, tv.tv_series_season, government.u_s_congressperson, internet.website, film.production_company, book.periodical, astronomy.orbital_relationship, amusement_parks.ride, architecture.structure, military.armed_force, ice_hockey.hockey_position, soccer.fifa, american_football.football_conference, award.competition, soccer.football_league_season, sports.school_sports_team, biology.organism, music.writer, soccer.football_world_cup, government.election, location.australian_local_government_area, location.us_state, american_football.football_coach, film.director, music.instrument, location.uk_constituent_country, sports.tournament_event_competition, business.customer, law.invention, award.award_category, tv.tv_writer, tv.tv_genre, business.consumer_company, broadcast.radio_station, aviation.aircraft_owner, film.film_festival_focus, military.military_person, tennis.tennis_tournament, meteorology.tropical_cyclone_season, education.educational_degree, geography.body_of_water, sports.professional_sports_team, government.general_election, sports.sports_league, interests.collection_category, book.author, meteorology.tropical_cyclone, book.magazine, basketball.basketball_position, soccer.football_player, tv.tv_actor, award.award_presenting_organization, film.film_genre, military.military_post, business.consumer_product, sports.sports_championship_event, music.album, geography.river, medicine.drug, education.fraternity_sorority, book.newspaper, location.location, sports.sport, government.government_agency, tv.tv_network, broadcast.genre, sports.pro_athlete, travel.accommodation, location.uk_statistical_location, music.lyricist, biology.animal, medicine.anatomical_structure, biology.organism_classification, tennis.tennis_tournament_champion, cvg.cvg_publisher, food.food, music.musical_scale, transportation.road, film.producer, astronomy.asteroid, location.hud_county_place, medicine.disease, education.school, location.in_state, rail.locomotive_class, cricket.cricket_stadium, sports.sports_team, boats.ship_class, sports.golfer, basketball.basketball_conference, broadcast.artist, time.recurring_event, basketball.basketball_player, location.us_county, medicine.drug_ingredient, film.music_contributor, book.periodical_subject, amusement_parks.park, government.governmental_body, location.region, cricket.cricket_bowler, tv.tv_producer, fictional_universe.fictional_character, film.writer, ice_hockey.hockey_player, organization.organization, media_common.media_genre, broadcast.radio_format, finance.currency, soccer.football_position, people.ethnicity, comic_books.comic_book_character, aviation.aircraft_model, theater.play, visual_art.visual_artist, book.book, medicine.medical_treatment, tv.tv_series_episode, award.hall_of_fame_inductee, business.defunct_company, cvg.cvg_platform, education.field_of_study, law.court, internet.website_owner, organization.membership_organization, baseball.baseball_player, theater.theater_actor, government.legislative_session, chess.chess_player, broadcast.broadcast, award.award, business.business_operation, sports.sports_league_season, government.political_party, royalty.chivalric_order_member, people.family_member, government.election_campaign, royalty.noble_title, people.person, royalty.noble_person, astronomy.celestial_object, aviation.airline, computer.operating_system, military.rank, tv.tv_program_creator, film.actor, government.government_office_or_title, olympics.olympic_event_competition, military.military_unit, book.periodical_publisher, business.industry, soccer.football_award, music.composition, government.us_president, location.jp_prefecture, architecture.venue, tv.tv_character, business.product_category, fictional_universe.fictional_organization, government.politician, aviation.airport, location.citytown, sports.multi_event_tournament, boats.ship_type, sports.sports_league_draft, law.legal_case, metropolitan_transit.transit_system, tennis.tennis_player, automotive.company, tv.tv_director, cvg.cvg_genre, sports.sports_championship, cvg.cvg_developer, religion.religious_leader, baseball.baseball_league, computer.computer, award.recurring_competition, religion.religion, time.event, tv.tv_program, protected_sites.listed_site, metropolitan_transit.transit_stop, music.artist, chemistry.chemical_compound, automotive.model, american_football.football_player, architecture.architectural_structure_owner, language.human_language, sports.boxer, film.film_character, spaceflight.astronaut, music.group_member, architecture.building, military.military_conflict, olympics.olympic_games, music.media_format, exhibitions.exhibition_sponsor, business.brand, astronomy.astronomical_discovery, music.producer, cricket.cricket_team, education.educational_institution, business.job_title, music.musical_group, film.film, location.capital_of_administrative_division, computer.software_license, geography.mountain, soccer.football_team, astronomy.star_system_body, broadcast.tv_station, location.in_district, sports.sports_facility, royalty.monarch, baseball.baseball_position, basketball.basketball_team, film.film_distributor, boats.ship, astronomy.constellation, ice_hockey.hockey_team, basketball.basketball_coach, celebrities.celebrity, location.country, music.music_video_director, cricket.cricket_player, cvg.computer_videogame, sports.sports_award_type, computer.software, tv.tv_personality, baseball.baseball_team, award.award_ceremony, music.record_label, soccer.football_team_manager, sports.cyclist, music.performance_role, metropolitan_transit.transit_line, organization.non_profit_organization, music.genre, soccer.football_league, chemistry.chemical_element, location.province, broadcast.tv_channel, geography.island, medicine.muscle, education.athletics_brand, martial_arts.martial_artist, music.composer, sports.sports_position, award.award_discipline, royalty.kingdom, book.written_work, location.australian_state, sports.sports_award_winner, education.university. Return the selected type name(s) only, comma-separated when necessary, in the list of this JSON object {"answer": ["ANSWER"]}.

{"answer": ["organization.organization"]}