Samuel Cooper (June 12, 1798 – December 3, 1876) was an American military officer, who served in the Second Seminole War and the Mexican–American War in the United States Army. Although little-known today, Cooper was technically the highest-ranking general officer in the Confederate States Army throughout the American Civil War, even outranking Robert E. Lee. After the conflict, Cooper remained in Virginia as a farmer.