Great question! In unreal conditionals (when imagining something contrary to fact), the traditional rule is to use “were” with all subjects — even “I,” “he,” “she,” and “it.” This is called the subjunctive mood.
Examples (traditional grammar):
If I were rich, I’d travel the world.
If she were taller, she could reach the top shelf.
So, is “was” incorrect?
Not exactly. While “were” is still considered more formal and grammatically standard, especially in writing, “was” is commonly used in informal speech — particularly with “if I was”.
Examples (informal usage):
If I was rich, I’d travel the world.
If he was in your position, he’d do the same.