If bosonic particles are cooled down below the temperature of quantum degeneracy, they can spontaneously form a coherent state in which individual matter waves synchronize and combine. Spontaneous coherence of matter waves forms the basis of a number of fundamental phenomena in physics, including superconductivity, superfluidity and Bose–Einstein condensation1,2. Spontaneous coherence is the key characteristic of condensation in momentum space3. Excitons—bound pairs of electrons and holes—form a model system to explore the quantum physics of cold bosons in solids4,5. Cold exciton gases can be realized in a system of indirect excitons, which can cool down below the temperature of quantum degeneracy owing to their long lifetimes6. Here we report measurements of spontaneous coherence in a gas of indirect excitons. We found that spontaneous coherence of excitons emerges in the region of the macroscopically ordered exciton state7and in the region of vortices of linear polarization. The coherence length in these regions is much larger than in a classical gas, indicating a coherent state with a much narrower than classical exciton distribution in momentum space, characteristic of a condensate. A pattern of extended spontaneous coherence is correlated with a pattern of spontaneous polarization, revealing the properties of a multicomponent coherent state. We also observed phase singularities in the coherent exciton gas. All these phenomena emerge when the exciton gas is cooled below a few kelvin.