Задача об энергии сфероидальной магнитной оболочки, решаемая методами классической электродинамики, возникает, в частности, при исследовании тонкостенных биосовместимых микрокапсул с целью решения актуальной проблемы --- направленной доставки лекарств. Лекарство внутри микрокапсул должно быть освобождено в нужный момент посредством разрушения оболочки капсулы. Размещение в оболочке микрокапсул магнитных наночастиц, чувствительных к внешнему магнитному полю, позволяет в принципе решить обе задачи --- доставить капсулу в нужное место и разрушить ее оболочку. Разрушение оболочки может, в частности, произойти под действием внутренних напряжений при изменении формы капсулы. Проведен анализ модели магнитной микрокапсулы в виде вытянутой сфероидальной магнитной оболочки, получены формулы для магнитостатической и магнитной свободной энергии в случае направления магнитного поля вдоль длинной оси сфероида. Работа выполнена при поддержке РНФ (проект 14-12-01379). DOI: 10.21883/FTT.2017.04.44271.283