The time it takes for nitrogen to be fixed by bacteria varies depending on the bacteria and the conditions. In general, it takes a few days to a week for nitrogen to be fixed by bacteria.