It is bordered by Virginia to the southeast , Kentucky to the southwest , Ohio to the northwest , Pennsylvania to the north - and slightly east - and Maine to the northeast .
West Virginia borders Maryland to the northeast .