As the name implies, West Virginia is west of Virginia. However, there is a large portion of West Virginia that is north of Virginia. So a better, more correct answer is saying that West Virginia is...
When Virginia voted to secede from the Union in April 1861, The more Northern and western counties decided not to secede. So, they broke away from Virginia and formed their own state of West Virginia.