First principles methods can now be used to predict many properties of materials. Even crystal structure and surface chemistry, long elusive to computational modeling, can now be predicted with novel methods. I will show applications for materials in electrocatalysts and rechargeable batteries.