The average federal trial itself takes roughly a week or less. However, pre-trial processes are time-consuming and often the case won’t reach the date for trial for many months, depending on how many cases a specific court already has scheduled.
Generally speaking, it takes between many months, and sometimes much longer, for a federal case to conclude from start to finish, depending on the nature of the charges and volume of discovery.