James Heyward Trapier (November 24, 1815 – December 21, 1865) was a career United States Army officer who fought during the Mexican–American War. He also served as a Confederate general during the American Civil War, dying shortly after its conclusion.