Barni is a comune in the Province of Como in the Lombardy region of Italy. It is located around 50 kilometres north of Milan and about 20 kilometres northeast of Como. Barni borders the following municipalities: Lasnigo, Magreglio, Oliveto Lario and Sormano.