If your head is pounding in the middle of class, the fastest things you can do are drink water, eat something if you’ve skipped a meal, and step away from bright screens for a few minutes. Most school headaches come from everyday triggers you can actually fix, and knowing what’s causing yours makes it easier to stop the next one before it starts.
Drink Water First
Dehydration is one of the most common and most overlooked causes of headaches at school. If you haven’t had much water that day, this is the first thing to address. Even a 2% drop in your body’s water levels can cause fatigue, trouble concentrating, and mood changes, all of which make a headache feel worse.
How much you need depends on your age. Kids aged 9 to 13 need about 7 to 8 cups (56 to 64 ounces) of fluids per day. Teenagers 14 to 18 need 8 to 11 cups (64 to 88 ounces). About 20% of your daily water intake comes from food, especially fruits and vegetables, but the rest needs to come from actually drinking throughout the day. If you don’t carry a water bottle to school, start. Sipping steadily between classes is far more effective than chugging a bunch at lunch.
Eat Something if You Skipped Breakfast
Skipping breakfast is a well-documented migraine and headache trigger in students. When you go hours without eating, your blood sugar drops, and your brain notices. Research consistently shows that missed meals, especially breakfast, reduce brain glucose levels and can provoke headaches directly through that blood sugar dip. Irregular meal patterns are also strong predictors of recurring headache attacks in children and adolescents.
If your head hurts and you realize you skipped breakfast or lunch, eat whatever you can get your hands on. A granola bar, crackers, a piece of fruit. Even something small can help stabilize your blood sugar. Going forward, eating before school is one of the simplest preventive steps you can take. It doesn’t need to be elaborate. A banana and some peanut butter, yogurt, or toast will do the job.
Give Your Eyes a Break From Screens
If you’ve been staring at a laptop or tablet for a while, your headache may be coming from digital eye strain. This is sometimes called computer vision syndrome, and its symptoms include headaches, blurry vision, dry eyes, and stiffness in your neck and shoulders. Straining to see a screen causes aching pain behind your eyes that can spread into a full headache.
Try the 20-20-20 method: every 20 minutes, look at something at least 20 feet away for about 20 seconds. This relaxes the focusing muscles in your eyes. If you can, close your eyes completely for a minute or two. Adjusting screen brightness so it roughly matches the lighting in the room also helps, since a screen that’s much brighter or dimmer than your surroundings forces your eyes to work harder.
Fix Your Posture at Your Desk
Tension headaches, the kind that feel like a tight band around your head, are closely tied to how you sit. Hunching over a desk or craning your neck forward to see a screen creates tension in your neck, shoulders, and upper back muscles that radiates up into your head. If your headaches tend to build slowly during the school day and feel like pressure rather than throbbing, posture is a likely contributor.
Sit with your back against the chair, feet flat on the floor, and shoulders relaxed rather than hiked up toward your ears. If you’re using a computer, the top of the screen should be roughly at eye level. When you’re looking down at a textbook or notebook, try not to drop your whole head forward. And if you’ve been sitting for a long stretch, take a moment between classes to roll your neck and stretch your shoulders. Even 30 seconds of movement can release built-up tension.
Try a Breathing Exercise
When you can’t leave the classroom or take medicine, slow breathing is one of the few things you can do right at your desk. Controlled breathing activates your body’s relaxation response, which can ease the muscle tension and stress fueling your headache. Mindfulness-based techniques that focus on becoming more aware of your breath have been used effectively in adolescent headache programs.
A simple approach: breathe in slowly through your nose for a count of four, hold for four, then breathe out through your mouth for a count of six. Repeat this five or six times. It won’t eliminate a severe headache, but it can take the edge off, especially if stress or anxiety is part of what’s causing it.
Ask to Visit the Nurse’s Office
If your headache isn’t improving, ask your teacher if you can go to the nurse’s office. School nurses can help, but whether they’re able to give you over-the-counter pain relief depends on your school’s policies and your state’s regulations. Many schools require written parental consent on file before they can give a student any medication, even something basic. Some schools allow nurses to provide common pain relievers under standing orders from a school physician.
If your school has a quiet room or a place to rest, lying down in a dark, calm space for up to 30 minutes can make a real difference, especially for migraines. Children’s Hospital Colorado recommends this as a first-line response in their headache action plans for schools: rest in a dark, quiet place and practice relaxation exercises like deep breathing or guided imagery. If light is making things worse, ask if you can dim the lights or wear sunglasses. If noise is the problem, ask about working in a quieter area like the library until the pain eases.
Preventing Headaches Before They Start
If headaches keep happening at school, the pattern usually points to a handful of fixable habits. The most consistently confirmed lifestyle risk factors for recurring headaches in young people are caffeine intake, lack of physical activity, and insufficient leisure time. If you’re drinking energy drinks or coffee regularly, that caffeine cycle (consumption followed by withdrawal during the school day) could be triggering your headaches directly.
Regular physical activity helps. Students who are more sedentary have higher headache rates. You don’t need an intense workout routine. Walking, biking to school, or being active during gym class counts. Sleep matters too. Irregular sleep schedules are a known headache trigger, so keeping a consistent bedtime on school nights makes a measurable difference.
If you get frequent headaches and they come with sensitivity to light and sound, nausea, or throbbing on one side of your head, you may be dealing with migraines rather than ordinary headaches. Students with diagnosed migraines can work with their doctor and school to create a formal headache action plan. These plans can include accommodations like modified assignments, permission to wear dark glasses, access to a quiet workspace, rest breaks, or adjusted schedules during bad episodes.
Headaches That Need Immediate Attention
Most school headaches are uncomfortable but not dangerous. A few warning signs, though, mean you should tell an adult right away rather than trying to push through. These include a sudden, severe headache that feels like the worst you’ve ever had, headaches with vomiting, confusion, vision changes, numbness, weakness on one side of your body, or trouble speaking. Headaches that wake you up at night or are worst right when you wake up in the morning also warrant a doctor’s evaluation.
If your headaches are getting progressively worse over weeks, happening more often, or affecting your ability to keep up with schoolwork, that pattern alone is worth bringing up with a parent or doctor. Worsening school performance and behavioral changes are recognized red flags that signal a headache problem needs professional evaluation rather than just classroom coping strategies.

