Spatial pattern of the brain network changes dynamically. This change is closely linked to the brain-state transition, which vary depending on a dynamic stream of thoughts. To date, many dynamic methods have been developed for decoding brain-states. However, most of them only consider changes over time, not the brain-state transition itself. Here, we propose a novel dynamic functional connectivity analysis method, brain-state extraction algorithm based on state transition (BEST), which constructs connectivity matrices from the duration of brain-states and decodes the proper number of brain-states in a data-driven way. To set the duration of each brain-state, we detected brain-state transition time-points using spatial standard deviation of the brain activity pattern that changes over time. Furthermore, we also used Bayesian information criterion to the clustering method to estimate and extract the number of brain-states. Through validations, it was proved that BEST could find brain-state transition time-points and could estimate the proper number of brain-states without any a priori knowledge. It has also shown that BEST can be applied to resting state fMRI data and provide stable and consistent results.