Fainting happens when you lose consciousness for a short amount of time because your brain isn’t getting enough oxygen. The medical term for fainting is syncope, but it’s more commonly known as “passing out.” A fainting spell generally lasts from a few seconds to a few minutes. Feeling lightheaded, dizzy, weak, or nauseous sometimes happens before you faint.