This article introduces an automated T-maze apparatus that we invented, and a protocol based on this apparatus for analyzing delay-based decision making and effort-based decision making in free moving rodents.