Equilibrium lattice parameters, electronic structures and optical properties of (111)-layered B-site deficient hexagonal perovskite Ba 5 M 4 O 15 (M ¼ Ta, Nb) were studied by first-principles computations on the basis of density functional theory using the norm-conserving-type pseudo-potential technique and screened nonlocal exchange-correlation functional HSE06 as defined by Heyd, Scuseria, and Ernzerhof. The calculated band dispersions showed that Ba 5 Ta 4 O 15 and Ba 5 Nb 4 O 15 are indirect band gap materials (A / G) with band gaps of 3.81 and 3.56 eV, respectively. The effective masses of photogenerated electrons and holes for Ba 5 Ta 4 O 15 and Ba 5 Nb 4 O 15 were evaluated in two principal directions at the G (Gamma) point. The Ta-O and Nb-O bonds in the MO 6 octahedral environments have polar covalent nature due to the p-d hybridization between O-2p and Ta-5d or Nb-4d orbitals. Since the valence and conduction bands of Ba 5 Ta 4 O 15 and Ba 5 Nb 4 O 15 mainly consist of O-2p and Ta-5d or Nb-4d states, changes in the structure of the MO 6 octahedral units can be effective for the band gap energy and consequently photocatalytic activity of Ba 5 Ta 4 O 15 and Ba 5 Nb 4 O 15 . The optical analysis revealed that the main peak of the imaginary part of the complex dielectric function of Ba 5 Ta 4 O 15 and Ba 5 Nb 4 O 15 corresponds to the interband electronic transition from O-2p to Ta-5d or Nb-4d. Also, anisotropies in the effective masses of photogenerated charge carriers and static dielectric tensors of Ba 5 Ta 4 O 15 and Ba 5 Nb 4 O 15 in an arbitrary crystallographic direction are presented. High photocatalytic activity of Ba 5 Ta 4 O 15 and Ba 5 Nb 4 O 15 for hydrogen generation from water splitting and photodegradation of organic pollutants and/or dye molecules under UV light is related to the light effective masses of photogenerated charge carriers. For the efficient solar-energy conversion, the electronic band structures, such as band-edge position and band gap, of Ba 5 Ta 4 O 15 and Ba 5 Nb 4 O 15 can be tuned by doping.