Preheat oven to 350 degrees. Line standard muffin tins with paper liners. Whisk dry ingredients (including coconut) in a large bowl. Cream butter and sugar with a mixer until light and fluffy. Add eggs, 1 at a time, beating after each addition.
Reduce speed to low. Mix remaining wet ingredients in a bowl. Add dry ingredients to butter mixture in 3 additions, alternating with wet ingredients and ending with dry. Scrape sides of bowl. Divide batter among muffin cups, filling each full.
Bake cupcakes until testers inserted into centers come out clean, about 20 minutes. Let cool in tins on wire racks.