Co-own a home with my brother about to sell

How does taxes work in this scenario? If the property let’s say is listed for a million and we make net proceeds of 500k? 250k each. Do we both get 250k tax exclusion?