Gather all ingredients.
Mix flour, sugar, cocoa powder, baking soda, and salt together in a large microwave-safe mug; stir in milk, canola oil, water, and vanilla extract.
Cook in the microwave until cake is done in the middle, about 1 minute 45 seconds.
