This depends on how fast your body processes alcohol, and this varies. In general, alcohol can stay in your system for 24 hours, so it's best to wait at least that long after your last drink before taking ibuprofen.