Green’s Dictionary of Slang

brain fart n.

[fart n. (1)]
(orig. US campus)

1. a nonsensical idea.

[US]LaBarge & Holt Sweetwater Gunslinger 201 (1990) 80: ‘I got a better idea,’ said Slim. ‘Oh, oh. Another brain fart,’ snickered Sundance.
[US]Eble Campus Sl. Apr.
posting at depthmarker.blogspot.com 3 Jan. 🌐 I volunteered...out of a charitable moment (the bartender clarified charitable as a brain fart!).
[UK]Guardian CiF 10 Dec. 🌐 Bet you wish you could delete that little brain fart.

2. a loss of memory or concentration.

[US]P. Munro Sl. U. 44: In the middle of the sentence he blanked out — ‘. . . which leads directly to my . . . uh . . . brainfart!’.
[US]Eble Sl. and Sociability 51: A brain fart is a ‘temporary loss of memory’ (‘I’m having such a brain fart l can’t think of my own phone number’).
N. Gaiman Amer. Gods (2002) 303: I dunno. I just had a brain-fart or something. It’s gone. Who is it again?
[US]W. Ellis Crooked Little Vein 233: Those episodes of The West Wing where the president has multiple scelerosis brainfarts.