A study found that pupils working in a room with the aroma of rosemary, in the form of an essential oil, achieved 5% to 7% better results in memory tests.
Mark Moss from Northumbria University said the findings were consistent with tests on adults.
Dr Moss said the study supported traditional beliefs about rosemary.
He said that rosemary had been associated with memory for hundreds of years.
Ancient Greek students wore garlands of rosemary in exams - and Ophelia, in Shakespeare's play Hamlet, says: "There's rosemary, that's for remembrance."