 McIlwain was born March 15, 1871, in Saltsburg, Pennsylvania.In 1894 Princeton University awarded him a bachelor's degree.He then moved to Pittsburgh, Pennsylvania, where he served as a clerk within a law firm while studying the law.