The Battle of Antietam ( also known as the Battle of Sharpsburg ) is the single bloodiest day in United States history , with almost 23 thousand total casualties , which included over 3.6 thousand fatalities .