You need 6 months. When you apply for your e-visa on line, you enter the day you want to enter Turkey. The systems will then calculate 6 months from this date, so when you enter the expiry date of your passport, the system will only offer you dates from 6 months forwards. Try it and you will see for yourself.