This isn't the 5 ft bed. It's a 6 ft on a 2007 Access Cab Tacoma. But, it does fit in there completely when positioned diagonally and the gate closes.
I suspect that it would fit in the 5 ft bed but you wouldn't be able to close the gate.
Hope that helps.