摘要:Context.Stars evolving along the asymptotic giant branch (AGB) can become carbon rich in the final part of their evolution. The detailed description of their spectra has led to the definition of several spectral types: N, SC, J, and R. To date, differences among them have been partially established only on the basis of their chemical properties.Aims.An accurate determination of the luminosity function (LF) and kinematics together with their chemical properties is extremely important for testing the reliability of theoretical models and establishing on a solid basis the stellar population membership of the different carbon star types.Methods.UsingGaiaData Release 2 (GaiaDR2) astrometry, we determine the LF and kinematic properties of a sample of 210 carbon stars with different spectral types in the solar neighbourhood with measured parallaxes better than 20%. Their spatial distribution and velocity components are also derived. Furthermore, the use of the infrared Wesenheit function allows us to identify the different spectral types in aGaia-2MASS diagram.Results.We find that the combined LF of N- and SC-type stars are consistent with a Gaussian distribution peaking atMbol ∼ −5.2 mag. The resulting LF, however, shows two tails at lower and higher luminosities more extended than those previously found, indicating that AGB carbon stars with solar metallicity may reachMbol ∼ −6.0 mag. This contrasts with the narrower LF derived in Galactic carbon Miras from previous studies. We find that J-type stars are about half a magnitude fainter on average than N- and SC-type stars, while R-hot stars are half a magnitude brighter than previously found, although fainter in any case by several magnitudes than other carbon types. Part of these differences are due to systematically lower parallaxes measured byGaiaDR2 with respect to HIPPARCOSvalues, in particular for sources with parallaxϖ< 1 mas. The Galactic spatial distribution and velocity components of the N-, SC-, and J-type stars are very similar, while about 30% of the R-hot stars in the sample are located at distances greater than ∼500 pc from the Galactic plane, and show a significant drift with respect to the local standard of rest.Conclusions.The LF derived for N- and SC-type in the solar neighbourhood fully agrees with the expected luminosity of stars of 1.5−3M⊙on the AGB. On a theoretical basis, the existence of an extended low-luminosity tail would require a contribution of extrinsic low-mass carbon stars, while the high-luminosity tail would imply that stars with mass values up to ∼5M⊙may become carbon stars on the AGB. J-type stars differ significantly not only in their chemical composition with respect to the N- and SC-types, but also in their LF, which reinforces the idea that these carbon stars belong to a different type whose origin is still unknown. The derived luminosities of R-hot stars means that it is unlikely that these stars are in the red-clump, as previously claimed. On the other hand, the derived spatial distribution and kinematic properties, together with their metallicity values, indicate that most of the N-, SC-, and J-type stars belong to the thin disc population, while a significant fraction of R-hot stars show characteristics compatible with the thick disc.