Knowles was born into a distinguished naval family, with his father rising to the rank of admiral and receiving a baronetcy for his services. Edward followed him into the navy, and served with several important officers in operations during the Seven Years' War, which he spent mostly in North American waters. He supported the sieges of Louisbourg and Quebec and made the acquaintance of the natural philosopher John Robison, who spent some time as his mathematics tutor.