Hayward was born in Willsboro, New York. He served in the Union Army during the American Civil War. He studied law in Whitewater, Wisconsin. His son, William Hayward, was a lawyer and commander of the Harlem Hellfighters during World War I. His grandson was Broadway producer Leland Hayward. The actress and writer Brooke Hayward is his great-granddaughter.