Ser is what something is
Use ser for identity, origin, profession, material, time and the qualities that define something: soy ingles, es medico, la mesa es de madera, son las tres. If you would still say it about the same person or thing next year, it is almost certainly ser.
Estar is how something is right now
Use estar for position, condition and anything that could change by tomorrow: estoy cansado, la puerta esta abierta, estamos en Madrid. Location is always estar, even for things that never move - el museo esta en el centro.
Some adjectives change meaning with each
This is where it gets interesting rather than harder. Es aburrido means he is a boring person; esta aburrido means he is bored right now. Es listo is clever, esta listo is ready. The pattern holds: ser describes what it is, estar describes the state it is in.
How to stop hesitating
Do not try to decide from rules while you are speaking - it is too slow. Learn a dozen fixed phrases with each verb until they sound right, and let the pattern settle underneath. Native speakers do not consult a rule either; they recognise the shape of the sentence.
Where something is, and where something happens
Location takes estar, but there is one exception that trips up almost everyone: events. When you say where or when something takes place, Spanish uses ser. La fiesta es en mi casa - the party is at my house. El concierto es en el estadio. La reunión es a las cinco. Compare el estadio está en las afueras, where the stadium is simply sitting in its place. The test is whether the subject is a thing or an occasion. A building, a city or a set of keys is somewhere, so estar; a wedding, a class or a match happens somewhere, so ser. Once you see it as happening rather than being located, the exception stops feeling like one.
The words that break the rule of thumb
The next-year test is a shortcut, not a law, and a few common cases ignore it. Death is the famous one: está muerto, even though nothing is more permanent. Marital status usually takes estar too - está casada, estoy divorciado - although you will also hear es casado. A job can switch to estar when it is temporary: está de camarero este verano means he is working as a waiter this summer, not that waiting tables is who he is. And with looks and food, estar describes the impression right now: estás muy guapa hoy, la sopa está rica. Say es rico and you have called someone wealthy.
Two places where only one verb will do
Some structures settle the question for you. Anything in progress uses estar with the gerund, never ser: estoy leyendo, estaban esperando. And the passive voice uses ser for the action itself: el puente fue construido en 1900, la carta fue escrita por mi abuela. Put estar with the same participle and you describe the result instead of the action. La puerta fue cerrada a las diez says someone closed it at ten; la puerta está cerrada says it is shut now. In everyday speech the ser passive is much rarer than in English - people prefer se construyó or construyeron - but in writing and on the news you will meet it constantly.