Skip to navigationSkip to main content':"";if(r){var a=n.promos.showYahooLogo?"":"yns-no-logo";r=r.replace("{notifOnboardBtnLabel}",n.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",n.promos.notifOnboardMsg).replace("{subscriptionTopic}",n.promos.subscriptionTopic).replace("{noLogoClass}",a).replace("{promoLogo}",n.promos.promoLogo)}var s=t.newCount>n.panel.maxCount?t.newCount:"",c=n.panel.notificationCenterPath,l=c?"":R,u=n.panel.headerMsg?"":" "+R,d=c?U:"",p=void 0;t.count?p=t.markup:p='{emptyPanelMsg}'.replace("{emptyPanelMsg}",n.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",r).replace("{hideClass}",l).replace("{notifCenterLink}",c).replace("{paddingClass}",d).replace("{headerMsg}",n.panel.headerMsg).replace("{hideHeaderClass}",u).replace(/{notificationCenterNavMsg}/g,n.panel.notificationCenterNavMsg).replace(/{newCount}/g,s)}},{key:"render",value:function(e,t){var n=this;if(n._panelNode){var o=void 0,i=n._panelNode,r=void 0,a=void 0;switch(e){case"expanded_panel":o='{promoMarkup}{notifMarkup}',a=n._store.getNotifications(),r=n._generatePanelMarkup(o,a),i.innerHTML=r;break;case"error_panel":r=(o='{errorMsg}').replace("{errorMsg}",n._config.panel.errorMsg),i.innerHTML=r}t&&t()}else t&&t(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML='',this._panelNode=document.getElementById(P))}},{key:"updateBadgeNode",value:function(e){if(e){var t=this._store.getNotifications().newCount,n=this._config.badge.maxCount;if(t){var o=t>n?n+"+":t;e.innerHTML=o}else e.innerHTML=""}}},{key:"addStyles",value:function(e){if(e&&"undefined"!=typeof window){var t=document.getElementById(this._config.panel.styleTagId);t||((t=document.createElement("style")).type="text/css",t.id=this._config.panel.styleTagId,t.innerText=e,document.head.appendChild(t))}}}]),e}(),j=function(){function e(t,n,o){E(this,e);var i=this;i._store=n,i._view=o,i._config=t;var r=i._config.panel;i._panelParentNode=document.querySelector(r.parentSelector),i._badgeNode=i._config.badge.selector&&document.querySelector(i._config.badge.selector),i._indicatorNode=r.indicatorSelector&&document.querySelector(r.indicatorSelector)}return C(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(P)}},{key:"refreshPanelNode",value:function(e,t){var n=this;M(n._notifPanelNode,B),n._store.fetchNotifications(e,(function(e,o){var i=window.wafer&&window.wafer.base;i&&i.destroy(n._notifPanelNode),e?n._notifPanelNode.innerHTML||(n._view.render("error_panel"),M(n._notifPanelNode,B)):(n._view.render("expanded_panel"),n._view.updateBadgeNode(n._badgeNode),n._showBadge(),n._showIndicator(),n._view.addStyles(o.css)),I(n._notifPanelNode,B),i&&i.sync(n._notifPanelNode.parentNode),t&&t(e,o)}))}},{key:"resetBadge",value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),M(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?M(this._indicatorNode,this._config.panel.indicatorClass):I(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?I(e._badgeNode,e._config.badge.hideClass):M(e._badgeNode,e._config.badge.hideClass)}}]),e}(),F={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0,bypassEligibleClassCheck:!1,notifOnboardBtnLabel:"Notify Me",notifOnboardMsg:"Get alerts for breaking news and top stories",promoLogo:"https://s.yimg.com/cv/apiv2/ae/news/circle_bell.png",showYahooLogo:!0,subscriptionTopic:"gondor_homerun_news"},badge:{hideClass:"",maxCount:5,selector:""},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"",headerMsg:"Notifications",imageTag:"img:40x40|2|80",indicatorClass:"yns-indicator",indicatorSelector:null,maxCount:6,notificationCenterNavMsg:"View all {newCount} notifications",notificationCenterPath:"",notificationTypes:"",parentSelector:null,styleTagId:"notificationStyles",theme:"default"},service:{attemptCount:1,attemptDelay:2,url:null,resetUrl:null,isRMP:!1,responseType:"json",timeout:1500}},Y={NotificationClient:function(){function e(t){E(this,e);var n=this;n.config=n._parseConfig(t),n._validateRequiredConfigs()&&(n._request=new S(n.config),n._store=new O(n.config,n._request),n._view=new H(n.config,n._store),n._panelController=new j(n.config,n._store,n._view),n._panelController.createPanelParentNode(),n._assignHelperMethods())}return C(e,[{key:"_parseConfig",value:function(e){var t={};for(var n in N(t,F),t)if(t.hasOwnProperty(n)){var o=t[n],i=e[n];"object"===(void 0===o?"undefined":L(o))?N(o,i):t[n]=e[n]}return t}},{key:"_validateRequiredConfigs",value:function(){var e=this.config;return!(!e.panel.parentSelector||!e.service.url)}},{key:"_assignHelperMethods",value:function(){var e=this;e.helpers={refreshPanelNode:e._panelController.refreshPanelNode.bind(e._panelController),resetBadge:e._panelController.resetBadge.bind(e._panelController),resetIndicator:function(){I(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},z="lnct",G=function(){function e(){var e,t;this.personalized=!1,this.ybarElem=document.getElementById("ybar"),this.partnerClasses=null===(t=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0===t?void 0:t.match(/ybar-variant-([a-z]*)/),this.client=new Y.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,t,n,o=this,i={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},r=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(t=window.Af)||void 0===t?void 0:t.context)||{};return r.region&&r.lang&&(i.lang=r.lang,i.region=r.region),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&(i.partner=this.partnerClasses[1]),new Promise((function(e,t){o.client.helpers.refreshPanelNode({matrixParams:i},(function(n,o){n&&(l("Notification refresh error:",n),t(n)),e(o)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,t,n,o,i,r=document.getElementById("notification-container"),a=null===(e=null==r?void 0:r.dataset)||void 0===e?void 0:e.config;if(D&&!a)return D;var s={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0},badge:{selector:"#notif-badge",hideClass:"ybar-notification-hidden"},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"Please check back later.",headerMsg:"Notifications",maxCount:5,parentSelector:"#ybarNotificationBody",notificationTypes:"breakingNews"},service:{url:"/tdv2_fp/api/resource/NotificationHistory.getHistory",isRMP:!1}},c={};if(a){"att"===(null===(t=this.partnerClasses)||void 0===t?void 0:t[1])&&(s.promos.showYahooLogo=!1);try{var u=JSON.parse(a);c=m({},u),this.personalized=1===u.personalize}catch(e){l("Notifications config parsing error",e)}r&&delete r.dataset.config}return D=this.mergeConfigs(s,c),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&"yahoo"!==(null===(o=this.partnerClasses)||void 0===o?void 0:o[1])&&(null===(i=D.promos)||void 0===i?void 0:i.subscriptionTopic)&&delete D.promos.subscriptionTopic,D},e.prototype.mergeConfigs=function(e,t){var n=m({},e);for(var o in e)n[o]=m(m({},e[o]),t[o]);return n},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(z)},e.prototype.setTimeStamp=function(){var e,t=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(z,t),t},e}(),V=new G,W=function(){return V},K="",J=[],$=function(){},X=function(){window.removeEventListener("beforeunload",X),""!==K&&l("Rapid not found on page",new Error(K))},Z=null,Q=function(){return null===Z&&(Z=document.getElementById("ybar")),Z},ee=function(){var e=0,t=window.YAHOO;if(T)return T;if(t)if(t.i13n)if(t.i13n.__RAPID_INSTANCES__)if(t.i13n.__RAPID_INSTANCES__.length0)for(var n=0;n0){if(T.addModules(i,!1,o),J.length>0)for(e=0;e40959)&&(i19903)&&(i55215))return!1}return!0},ve={navBeaconFired:!1},he=["ready","navigation"],ye=function(){function e(e){var t=this;this.triggerEvent=s,this.addEventListener=c,this.logError=l,this.logPerformance=u,this.getConfig=d,this.getPerformanceMetrics=p,this.rapidRefresh=ne,this.state=m({},ve),this.modules=e,this.userEmail="",window.YBAR&&(he.forEach((function(e){var n="on".concat(e),o=window.YBAR[n];o&&(t[n]=o)})),window.YBAR.wssid&&(this.wssid=window.YBAR.wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),he.forEach((function(e){var n="on".concat(e);c(e,(function(){for(var o,i=[],r=0;r0){if(o&&i){var n=t>99;o.classList.add("".concat(At)),i.classList.add("count-loaded"),o.textContent=n?"99+":t+"",n?o.classList.add("".concat(kt)):t>=10&&o.classList.add("".concat(St))}e.onDestroy((function(){o&&(o.textContent="")}))}})).catch((function(){}))}(e,s)}));var Ht="_yb_1e46uhr",jt=function(e,t){var n;t.logoImages&&(n=t.logoImages).length>0&&Array.prototype.forEach.call(n,(function(e){e.onerror=function(){e.onerror=null,e.style.display="none"}})),t.wrapper&&(function(e,t){e&&(Me("#ybar-logo","#ybar-logo",t),t.onDestroy((function(){e.classList.remove("ybar-show-outline"),e.classList.remove("ybar-hide-outline")})))}(t.wrapper,e),function(e,t){t&&e.addElementListener(t,"click",(function(){e.triggerEvent("logo-click")}))}(e,t.wrapper))};ge("ybar-mod-logo",(function(e){var t={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(Ht))};jt(e,t)}));var Ft={"dropdown-open":"_yb_1qr55t8","merchant-is-selected":"_yb_hpfgev",overlay:"_yb_1t4opbo","selected-merchant-clear-button":"_yb_sdzekv","shops-buttons":"_yb_1gmhi8h","styled-select":"_yb_1fed2vs",tooltip:"_yb_156j5sr","tooltip--show":"_yb_t94u7s",tooltip__text:"_yb_149d3c6",tooltip__voice:"_yb_rkldcd",tooltip__web:"_yb_1bze76z",dark:"_yb_of9a42",darker:"_yb_1br2rz9",light:"_yb_p0373k","search-border-gradient":"_yb_109k2ga","search-border-gradient-hover":"_yb_vljmzl",midnight60:"_yb_1o792pg","search-input-uh3-hover":"_yb_15ox84z","search-input-uh3-focus-visible":"_yb_1e6541m","sa-btn-bar":"_yb_1axm66t","searchbox-icon-uh3":"_yb_1uef33k",empty:"_yb_owcm9n"},Yt=function(e,t){var n=Math.max(e,t),o=Math.min(e,t),i=Math.abs(n-o);return b([],y(new Array(i+1)),!1).map((function(e,t){return o+t}))},zt=function(e,t,n){var o=e.getConfig().bucketConfig,i=(void 0===o?{}:o).enable_search_ui,r=void 0!==i&&i;if(t.ybar){t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.add("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");te("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}),setTimeout((function(){t.searchInput instanceof HTMLInputElement&&(n&&(t.searchInput.value=n),t.searchInput.focus(),r&&window.YAHOO&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view&&!window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.show())}))}},Gt=function(e){var t;null===(t=e.ybar)||void 0===t||t.classList.remove("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.remove("ybar-overlay"),document.body.classList.remove("ybar-overlay-noscroll"),e.searchInput instanceof HTMLInputElement&&(e.searchInput.value="",e.searchInput.blur())},Vt=function(e,t){var n=e.getConfig();if("smartphone"===n.device){if("finance"===n.property&&"crunch"===n.ytheme&&e.addElementListener(t.searchInput,"click",(function(){var n,o;n="search_input_focus_click",null!==(o=ae())&&(oe[n]||(oe[n]=o)),e.addElementListener(t.searchForm,"click",(function(){if(t.ybar){if(t.ybar.classList.contains("ybar-searchbox-assist-fullscreen"))return;t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),t.ybar.classList.add("ybar-searchbox-assist-fadein")}if(!document.documentElement.classList.contains("ybar-overlay")){document.documentElement.classList.toggle("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");te("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"})}}))})),e.addElementListener(t.searchBoxPlaceholder,"click",(function(){zt(e,t)})),e.addElementListener(t.searchBoxPlaceholder,"keydown",(function(n){var o=n,i=o.keyCode,r=o.key,a=Yt(65,90),s=b(b([],y(Yt(58,57)),!1),y(Yt(96,105)),!1),c=b(b([],y(a),!1),y(s),!1).includes(i);(32===i||13===i||c)&&(n.preventDefault(),n.stopPropagation(),zt(e,t,c?r:""))})),t.searchBoxBackButton&&(e.addElementListener(t.searchBoxBackButton,"click",(function(e){e.stopPropagation(),window.YAHOO&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&(window.YAHOO.SA.apps[0].view.resetQuery(),window.YAHOO.SA.apps[0].view.hide()),Gt(t);te("ybar","back-close-srch","",{elm:"btn",subsec:"searchbox",itc:"1"})})),e.addElementListener(t.searchInput,"keyup",(function(e){e.stopPropagation();27===e.keyCode&&(e.stopPropagation(),Gt(t))}))),e.addEventListener("viewerClosed",(function(){Gt(t)})),window.self!==window.top&&t.ybar&&t.searchForm)t.searchForm.setAttribute("target","_top"),document.querySelectorAll("#ybar a").forEach((function(e){e.setAttribute("target","_top")}));e.onDestroy((function(){Gt(t)}))}},Wt=function(){function e(e,t,n){t&&(this.ybar=e,this.elem=t,this.options=n,this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.addEventListeners())}return Object.defineProperty(e.prototype,"tooltip",{get:function(){var e=this;return this.tooltipMarkup||(this.tooltipMarkup=this.createTooltip(),(this.options.tooltipParentElm||this.elem).appendChild(this.tooltipMarkup),this.ybar.onDestroy((function(){var t,n;null===(n=null===(t=e.tooltipMarkup)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.tooltipMarkup)}))),this.tooltipMarkup},enumerable:!1,configurable:!0}),e.prototype.show=function(){this.tooltip.classList.add(this.options.showClass)},e.prototype.hide=function(){this.tooltip.classList.remove(this.options.showClass)},e.prototype.addEventListeners=function(){this.ybar.addElementListener(this.elem,"mouseenter",this.show),this.ybar.addElementListener(this.elem,"focus",this.show),this.ybar.addElementListener(this.elem,"mouseleave",this.hide),this.ybar.addElementListener(this.elem,"blur",this.hide)},e.prototype.createTooltip=function(){var e=document.createElement("div");e.className=this.options.containerClass||"";var t=document.createElement("p");return t.textContent=this.options.label,t.className=this.options.textClass||"",e.appendChild(t),e},e}(),Kt={containerClass:Ft.tooltip,textClass:Ft.tooltip__text,showClass:Ft["tooltip--show"]};ge("ybar-mod-searchbox",(function(e){var t,n=e.getConfig(),o={ybar:document.getElementById("ybar"),searchInput:document.getElementById("ybar-sbq"),buttonBar:document.querySelector(".".concat(Ft["sa-btn-bar"])),searchForm:document.getElementById("ybar-sf"),searchBoxIcon:document.querySelector(".".concat(Ft["searchbox-icon-uh3"])),searchBoxPlaceholder:document.getElementById("ybar-smartphone-searchbox-placeholder"),searchBoxBackButton:document.getElementById("ybar-search-back-btn"),shopsButtonsWrap:document.querySelector(".".concat(Ft["shops-buttons"])),categorySelect:document.getElementById("shops-category-select"),selectedMerchantInput:document.getElementById("selected-merchant-input"),selectedMerchantClearButton:document.querySelector(".".concat(Ft["selected-merchant-clear-button"])),submitSearchBtn:document.getElementById("ybar-search"),clearSearchBtn:document.getElementById("ybar-sbq-x"),searchGradientBorder:document.querySelector(".".concat(Ft["search-border-gradient"]))};if(function(e,t){var n,o,i,r=e.getConfig();if(t.ybar&&["desktop","tablet"].includes(r.device)&&(null===(n=r.bucketConfig)||void 0===n?void 0:n.highlight_searchassist)&&(null===(o=r.bucketConfig)||void 0===o?void 0:o.overlay_class)){t.ybar.setAttribute("data-ovrly-bkt",r.bucketConfig.overlay_class),null===(i=t.searchForm)||void 0===i||i.classList.add(Ft[r.bucketConfig.overlay_class]);var a=document.createElement("div");a.classList.add(Ft.overlay,Ft[r.bucketConfig.overlay_class]),document.body.appendChild(a),e.onDestroy((function(){document.body.removeChild(a)})),e.addElementListener(t.searchForm,"focusout",(function(e){if(t.searchForm&&t.searchInput){var n=e.relatedTarget;n&&!t.searchForm.contains(n)&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.hide()}}))}}(e,o),Vt(e,o),o.searchGradientBorder){var i=!1;o.searchInput.addEventListener("keydown",(function(e){var t=e.code,n=e.key,r=t.startsWith("Key"),a=t.startsWith("Digit"),s=/^[!@#$%^&*()_+\-=[\]{};':"\\|,./?`~]$/.test(n);(r||a||s)&&!i&&(o.searchGradientBorder.classList.add("".concat(Ft["search-border-gradient-hover"])),i=!0)})),e.addElementListener(o.searchForm,"mouseover",(function(){i||o.searchGradientBorder.classList.add("".concat(Ft["search-border-gradient-hover"]))})),e.addElementListener(o.searchForm,"mouseout",(function(){i||o.searchGradientBorder.classList.remove("".concat(Ft["search-border-gradient-hover"]))})),e.addElementListener(o.searchInput,"click",(function(){i=!0})),e.addElementListener(o.searchInput,"blur",(function(){o.searchGradientBorder.classList.remove("".concat(Ft["search-border-gradient-hover"]))}))}o.searchForm&&(e.addElementListener(o.searchBoxIcon,"mouseover",(function(){o.searchForm.classList.add("".concat(Ft["search-input-uh3-hover"]))})),e.addElementListener(o.searchBoxIcon,"mouseout",(function(){o.searchForm.classList.remove("".concat(Ft["search-input-uh3-hover"]))})),e.addElementListener(o.buttonBar,"mouseover",(function(){o.searchForm.classList.add("".concat(Ft["search-input-uh3-hover"]))})),e.addElementListener(o.buttonBar,"mouseout",(function(){o.searchForm.classList.remove("".concat(Ft["search-input-uh3-hover"]))})),e.addElementListener(o.searchInput,"keyup",(function(e){"Tab"===e.key&&o.searchForm.classList.add("".concat(Ft["search-input-uh3-focus-visible"])),o.searchInput.classList.toggle("".concat(Ft.empty),""===o.searchInput.value)})),e.addElementListener(o.searchInput,"keydown",(function(){o.searchForm.classList.remove("".concat(Ft["search-input-uh3-focus-visible"]))})),e.addElementListener(o.searchInput,"focusout",(function(){o.searchForm.classList.remove("".concat(Ft["search-input-uh3-focus-visible"]))})),e.addElementListener(o.submitSearchBtn,"click",(function(e){""===o.searchInput.value.trim()&&e.preventDefault()})),e.addElementListener(o.clearSearchBtn,"click",(function(){o.searchInput.classList.add("".concat(Ft.empty))}))),o.submitSearchBtn&&"crunch"===n.ytheme&&new Wt(e,o.submitSearchBtn,m(m({},Kt),{label:null!==(t=n.i18n.root.SEARCH_TOOLTIP_WEB)&&void 0!==t?t:"Search the web",containerClass:"".concat(Ft.tooltip," ").concat(Ft.tooltip__web),tooltipParentElm:o.clearSearchBtn.parentElement}))}));var Jt="_yb_tdk4ba",$t="_yb_hkd17a",Xt="_yb_rtzclf",Zt="_yb_tdbhj6",Qt="_yb_de52ef",en="_yb_9hwrey",tn="_yb_slc8ta",nn="_yb_bf0svp",on="_yb_hjic9z";ge("ybar-mod-adaptivenav",(function(e){var t=document.querySelector("#ybar-l1-more-menu ul"),n={moreDropDown:document.querySelector(".".concat(Jt)),moreBtn:document.querySelector(".".concat($t)),wrap:document.querySelector(".".concat(Zt)),moreSectionTitle:document.querySelectorAll(".".concat(Qt)),editionsCtaBtn:document.querySelector(".".concat(en)),editionsMenu:document.querySelector(".".concat(tn)),closeBtn:document.querySelector(".".concat(nn)),moreMenuDropDownHeight:t?"".concat(t.offsetHeight+48,"px"):"0"};new We(e,{adaptiveNavBtn:n.moreBtn,containerElm:n.moreDropDown,innerContainerElm:n.editionsMenu,isAdaptiveNav:!0});var o=!1,i=function(t,n){var o=t.moreDropDown,i=t.moreBtn,r=t.wrap,a={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};o&&i&&r&&o.classList.contains("".concat(Jt))&&(o.style.height=t.moreMenuDropDownHeight,o.classList.remove("".concat(Jt)),r.classList.add("".concat(Xt)),i.setAttribute("aria-expanded","true"),a.elm="expand",e.triggerEvent("adapnav:more:show",{event:n}),te("ybar",a.slk,"",a))},r=function(e,t){void 0===t&&(t=!1);var n=e.moreDropDown,i=e.moreBtn,r=e.wrap,a={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};n&&i&&r&&(n.classList.contains("".concat(Jt))||(n.classList.add("".concat(Jt)),n.style.height="0",r.classList.remove("".concat(Xt)),i.setAttribute("aria-expanded","false"),o||t||te("ybar",a.slk,"",a)))},a=function(e,t){void 0===t&&(t=!1);var n=e.editionsMenu,o={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};null==n||n.close(),null==n||n.classList.remove("".concat(on)),t||te("ybar",o.slk,"",o)},s=function(){var e;window.innerWidth0&&(t.chevron&&t.chevron.classList.remove("hide"),t.greetingsContainer&&(t.greetingsContainer.classList.add(cn.multiple),t.greetingsContainer.setAttribute("aria-expanded","false")))}for(var m=document.querySelector(".".concat(cn["ybar-user-accounts-list"]))||document.querySelector(".".concat(cn["accounts-list"])),v=function(n){var o=function(e,t,n){var o,i=n.ybarAccMenuItemTemplate,r=n.crumb;if(i){var a=(t+1).toString(),s=i.getAttribute("data-signedOutState"),c=i.getAttribute("data-signedInState")||"",l=i.getAttribute("data-done")||"",u=dn(i),d=u.children&&u.children[0];if(!d&&u.childNodes)for(var p=0;p a"),o=document.querySelector("#ybar-navigation-item-mail > a > span");null!==t&&null!==n&&(new Rt).fetchCount().then((function(t){o&&t>0&&(o.textContent="("+(t>99?"99+":t)+")",e.onDestroy((function(){o.textContent=""})))})).catch((function(){}))},zn=!1,Gn=-1,Vn=function(e,t,n){var o,i,r,a=-1,s=0;if(e.ybarNav&&e.navList){var c=window.getComputedStyle(e.ybarNav),l=parseInt(c.width,10)-parseInt(c.paddingLeft,10)-parseInt(c.paddingRight,10),u=61,d=e.navigationPlacement();if(d)u+=d.getBoundingClientRect().width;if(Dn)u+=Dn.getBoundingClientRect().width;for(var p=window.getComputedStyle(e.navList),f=parseInt(p.gap,10)||0,m=0;mg&&(m!==e.navItems.length-1||s+y>g||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&Gn10?e.moreMenuDropdown.classList.add(e.longListClass):null!==e.moreMenuDropdown&&e.moreMenuDropdown.classList.remove(e.longListClass))}},Wn=function(e,t){var n,o=function(e,n){var o;e.classList.contains(t.moreMenuNavItemClass)&&(null===(o=t.moreMenuMainFocusItem)||void 0===o||o.setAttribute("aria-expanded",n))},i=function(){t.isTablet&&(document.body.classList.remove("ybar-nav-open"),document.body.removeEventListener("touchend",u))},r=function(n){var i=n.delegateTarget;i&&i.classList.contains(t.dropdownWrapperClass)&&(i.classList.contains(t.dropdownOpenClass)||(e.triggerEvent("nav:dropdown:show",{event:n}),t.isTablet&&(document.body.classList.add("ybar-nav-open"),document.body.addEventListener("touchend",u)),i.classList.add(t.dropdownOpenClass),o(i,"true")))},a=function(e){var n=e.delegateTarget;if(null==n?void 0:n.classList.contains(t.navigationDropdownListClass)){var r=n.parentElement;r&&!r.contains(e.relatedTarget)&&r.classList.contains(t.dropdownWrapperClass)&&(i(),r.classList.remove(t.dropdownOpenClass),o(r,"false"))}else if(null==n?void 0:n.classList.contains(t.dropdownOpenClass)){if(t.isTablet&&e instanceof FocusEvent)return;var a=e.target;Dn&&(!Dn||Dn.contains(a)&&"focusout"!==e.type)||(i(),n.classList.remove(t.dropdownOpenClass),o(n,"false"))}},s=ze(".".concat(t.dropdownWrapperClass),"focusin",r),c=ze(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),"focusout",a),l=document.getElementById("ybar-navigation"),u=function(e){var n=null==e?void 0:e.target;t.isTablet&&e&&e.target&&e.target instanceof HTMLElement&&(e.target.classList.contains(t.dropdownOpenClass)||e.target.closest(".".concat(t.dropdownOpenClass)))||document.body.classList.contains("ybar-nav-open")&&!["svg","path"].includes(n.tagName)&&(null==l||l.querySelectorAll(".".concat(t.dropdownOpenClass)).forEach((function(e){e.classList.remove(t.dropdownOpenClass)})),i())};e.addEventListener("nav:closeOverflowMenu",(function(){u()}));var d=ze(".".concat(t.dropdownWrapperClass),"touchstart",(function(e){if(t.isTablet){var n=e.delegateTarget;n&&n.classList.contains(t.dropdownOpenClass)?a(e):(u(e),r(e))}})),p=null===(n=t.ybarNav)||void 0===n?void 0:n.querySelectorAll(".".concat(Rn));null==p||p.forEach((function(t){var n=t.parentNode;n&&null!==document.querySelector(".ybar-ytheme-crunch")&&e.addElementListener(n,"mouseenter",(function(t){e.triggerEvent("nav:dropdown:show",{event:t})}))})),e.onDestroy((function(){var e;d.destroy(),s.destroy(),c.destroy(),b([],y(null===(e=t.ybarNav)||void 0===e?void 0:e.querySelectorAll(".".concat(t.dropdownOpenClass))),!1).forEach((function(e){e.classList.remove(t.dropdownOpenClass);var n=document.activeElement;(function(e,t){var n=!1;if(!e||!t)return n;if("function"==typeof e.contains)n=e.contains(t);else for(var o=t;o;){if(o===e){n=!0;break}o=o.parentElement}return n})(t.ybarNav,n)&&setTimeout((function(){null==n||n.blur()}),1)}))}))},Kn=function(e,t,n,o){for(var i=t||window.location.pathname,r=n||window.location.hostname,a=(o||{}).setParentFocus,s=void 0!==a&&a,c=b([],y(e.topLevelNavLinks),!1),l=null,u=null,d=0;d li"),dropdownClass:t.dropdownWrapperClass,enableMoreMenu:i,moreMenuNavElm:t.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,t){var n,o;b([],y(null===(n=t.ybarNav)||void 0===n?void 0:n.querySelectorAll(".".concat(t.dropdownOpenClass))),!1).forEach((function(e){return e.classList.remove(t.dropdownOpenClass)}));var i=e.getConfig();Dn=(null===(o=i.bucketConfig)||void 0===o?void 0:o.enable_mid_nav_placement)?document.getElementById("ybar-mid-nav-placement"):void 0,"news"===i.property?Nn=-12:(Nn="finance"!==i.property&&"sports"!==i.property&&t.shiftMoreMenuEnabled?-24:-16,"zh-Hant-HK"!==i.locale&&"zh-Hant-TW"!==i.locale||(Nn=-20));var r=t.isTablet?"touchstart":"mouseover",a=ze(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),r,(function(n){if(window||document){var o=window.innerWidth||document.documentElement.clientWidth,r=n.delegateTarget;if(r&&-1!=r.className.indexOf(t.dropdownWrapperClass)&&(r=r.querySelector(".".concat(t.navigationDropdownListClass))),r){r.style.removeProperty("left");var a=r.getBoundingClientRect(),s=Math.trunc(a.right),c=parseInt(window.getComputedStyle(r).marginLeft,10)+o-s;if(s>o)return"sports"!==i.property?void(r.style.marginLeft=c+"px"):void(r.style.right="0px");if(parseInt(r.style.marginLeft)0?r.style.removeProperty("margin-left"):r.style.marginLeft=c+"px":(r.style.removeProperty("margin-left"),r.style.marginLeft=Nn+"px"),t.isTablet){var l=r.previousElementSibling;if(Dn&&Dn.contains(r));else if(l){var u=l.getBoundingClientRect(),d=Math.trunc(u.left);r.style.left=d+"px"}}}}else{var p=new Error("Dropdown could not be initialized");e.logError("Error:",p)}}));e.onDestroy((function(){a.destroy()}))}(e,t),Yn(e),e.addElementListener(document,"DOMContentLoaded",(function(){Yn(e)})),Wn(e,t);var a=e.getConfig().bucketConfig,s=void 0===a?{}:a,c=s.enableDynamicNavfocus,l=void 0!==c&&c,u=s.enableFuzzyMatching;if(l&&(zn=void 0!==u&&u,Kn(t)),e.addEventListener("nav:setFocus",(function(e){var n=e.detail,o=void 0===n?{}:n,i=o.hostname,r=void 0===i?window.location.hostname:i,a=o.pathname,s=void 0===a?window.location.pathname:a,c=o.options;Kn(t,s,r,void 0===c?{}:c)})),i){var d=document.createElement("style");d.title="ybar_nav_interim",document.head.appendChild(d);var p=ze("#ybar-nav-more-menu ul a","click",(function(t){e.triggerEvent("navigation",{event:t})}));e.addEventListener("nav:resize",(function(){Vn(t,d,r)})),Vn(t,d,r);var f=e.getConfig();if("complete"===document.readyState)Jn(e,t,d,r);else{var m="load";("news"===f.property&&("zh-Hant-TW"===f.locale||"zh-Hant-HK"===f.locale)||"finance"===f.property&&"zh-Hant-TW"===f.locale)&&(m="DOMContentLoaded"),e.addElementListener(window,m,(function(){Jn(e,t,d,r)}))}e.addElementListener(window,"resize",(function(){Vn(t,d,r)})),e.onDestroy((function(){var e=d.parentNode;null==e||e.removeChild(d),p.destroy()}))}Zn(e,t)},Xn=function(e,t){var n=["zh-Hant-TW","zh-Hant-HK"].includes(e.getConfig().locale);return t.isFuji2&&n},Zn=function(e,t){if(t.isNavHidden){var n=!1;e.addElementListener(document,"DOMContentLoaded",(function(n){t.isNavHidden()&&e.triggerEvent("l2:hide",{event:n})})),e.addElementListener(window,"resize",(function(o){!n&&t.isNavHidden()&&e.triggerEvent("l2:hide",{event:o}),n=t.isNavHidden()}))}},Qn="#ybar-nav-more-menu";ge("ybar-mod-navigation",(function(e){var t,n=e.getConfig(),o={dropdownWrapperClass:qn,isFuji2:null!==document.querySelector(".ybar-ytheme-fuji2")||null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet")||"tablet"===n.device||matchMedia("(hover: none)").matches,longListClass:Bn,moreMenuDropdown:document.querySelector("".concat(Qn," ul")),moreMenuNavItem:document.querySelector(Qn),moreMenuNavLinksSelector:"".concat(Qn," ul a"),moreMenuMainFocusItem:document.querySelector("".concat(Qn," > button")),moreMenuNavItemClass:Fn,navigationDropdownItemClass:Pn,navigationDropdownListClass:Rn,navItems:document.querySelectorAll("ul.".concat(jn," li.").concat(Hn)),topLevelNavLinks:document.querySelectorAll("li.".concat(Hn," > a")),navLinks:document.querySelectorAll(".ybar-mod-navigation a"),navList:document.querySelector(".ybar-mod-navigation ul"),shiftMoreMenuEnabled:document.querySelector(".ybar-shift-more-menu"),ybarNav:document.getElementById("ybar-navigation"),ybarNavigationItemClass:Hn,dropdownOpenClass:Tn,hasNavPlacement:document.getElementById("ybar-nav-placement"),marginOffset:function(e){var t=window.getComputedStyle(e),o=parseInt(t.marginLeft,10)+parseInt(t.marginRight,10);return"sports"===n.property?parseInt(t.marginRight):"finance"===n.property&&"crunch"===n.ytheme?(o-=1.8)>5?o:5:"crunch"===n.ytheme?o:0},navigationPlacement:function(){return t||(t=document.getElementById("ybar-nav-placement")),t},isNavHidden:function(){var e=!1;return"finance"===n.property&&"crunch"===n.ytheme&&document.documentElement.clientWidth=5||n.initialized?clearInterval(r):(void 0!==n.isNotificationsSupported()&&n.init(),i++)}),100)}return e.prototype.show=function(e){var t;this.initialized&&(this.historyEnabled&&!e||(document.body.classList.add(ao),null===(t=this.a11yMenu)||void 0===t||t.setAttribute("aria-expanded","true"),this.lastSeen=(new Date).getTime()))},e.prototype.hide=function(){var e;this.initialized&&(this.historyEnabled&&document.body.classList.remove(so),document.body.classList.remove(ao),null===(e=this.a11yMenu)||void 0===e||e.setAttribute("aria-expanded","false"))},Object.defineProperty(e.prototype,"lastSeen",{get:function(){return this.state.lastSeen},set:function(e){this.state.lastSeen=e,this.setLocalStorage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manuallyClosed",{get:function(){return this.state.manuallyClosed},set:function(e){this.state.manuallyClosed=!!e,this.setLocalStorage()},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.isNotificationsSupported()&&this.isNotificationPermissionDefault()&&(this.historyEnabled||document.body.classList.add(so),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?6048e5:ro)||(document.body.classList.add(so),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(co)[0],"click",(function(){e.hide(),e.manuallyClosed=!0}))},e.prototype.isNotificationsSupported=function(){var e;return null===(e=null===window||void 0===window?void 0:window.subscriptionHelperInstance)||void 0===e?void 0:e.checkIsSupportedBrowser()},e.prototype.isNotificationPermissionDefault=function(){var e;return"default"===(null===(e=window.Notification)||void 0===e?void 0:e.permission)},e.prototype.hasSeenTooltipIn=function(e){if(!this.lastSeen)return!1;var t=new Date(this.lastSeen),n=new Date;return t.getTime()+e>n.getTime()},e.prototype.setLocalStorage=function(){var e;null===(e=window.localStorage)||void 0===e||e.setItem(io,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,t,n=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(io);if(null===n)return null;try{return JSON.parse(n)}catch(e){return null===(t=window.localStorage)||void 0===t||t.removeItem(io),null}},e}(),po=-1,fo={0:0,1:1,9:9,99:99,150:150},mo=function(e,t){var n,o=t.isUH3,i=t.notifMenu,r=t.notifMenuOpener,a=t.notifDropdown,s=t.notifBadge,c=t.notifContainer,l=t.notifLabel;t.tooltipContainer&&(n=new uo(e,t.tooltipContainer));var u=W(),d=function(){i&&(i.checked=!1),null==a||a.classList.remove("ybarMenuOpen")},p=function(){var t;e.triggerEvent("close-all-menus"),!!document.querySelector(".display-push-promos .".concat(eo))||(u.resetBadge(),s&&(o?null===(t=s.parentElement)||void 0===t||t.classList.remove(to):s.style.display="none"))},f=function(e){var t,n;0===po&&(null===(t=null==e?void 0:e.css)||void 0===t?void 0:t.length)&&e.css.length>0&&(po++,function(e){for(var t=function(e){var t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)},n=0;n0&&s)if(o){var r,a=(r=e.newCount)>99;s.textContent=a?"99+":r+"",null===(n=s.parentElement)||void 0===n||n.classList.add(to)}else s.style.display="block"},m=function(){u.refreshPanel().then(f).then(ne).catch((function(){}))};if(e.addEventListener("close-all-menus",(function(){ke(c)||d()})),c){m();var v=setInterval((function(){m()}),3e5);e.onDestroy((function(){clearInterval(v)})),o?l&&l.addEventListener("mouseenter",(function(){p(),null==n||n.show()})):c.addEventListener("mouseenter",(function(){p(),null==n||n.show()})),c.addEventListener("mouseleave",(function(){d(),null==n||n.hide()}))}e.addElementListener(i,"click",(function(){te("ybar","notification","",{elm:"btn",elmt:"block"===(null==s?void 0:s.style.display)?"newalert":"",subsec:"notification",itc:"1"})})),r&&Ae(e,r,"ybar","notification",{elm:"expand",subsec:"notifications",itc:"2"}),e.addElementListener(a,"focusin",(function(){i&&(i.checked=!0),null==a||a.classList.add("ybarMenuOpen")})),e.addElementListener(a,"focusout",d),e.addElementListener(t.tooltipContainer,"focusin",(function(){null==n||n.show()})),e.addElementListener(t.tooltipContainer,"focusout",(function(){null==n||n.hide()}));var h=e.getConfig().device,y=document.getElementById("ybar");y&&y.classList.contains("ybar-ytheme-crunch")&&(po=0);var b=new RegExp("[?&]notifications=1(&|#|$)");"desktop"===h&&i&&b.test(window.location.search)&&(i.checked=!0)};ge("ybar-mod-notification",(function(e){var t={isUH3:"crunch"===e.getConfig().ytheme,notifContainer:document.getElementById("notification-container"),notifBadge:document.getElementById("notif-badge"),notifMenu:document.getElementById("ybarNotificationMenu"),notifMenuOpener:document.querySelector("#ybarNotificationMenu + label"),notifDropdown:document.getElementById("notifDropdownContainer"),tooltipContainer:document.querySelector(".".concat(no)),notifLabel:document.querySelector(".".concat(oo))};t.notifDropdown&&mo(e,t)}))}()}};]]>TTiffani ShermanUpdated Tue, March 17, 2026 at 6:30 PM GMT+1 9 min readWhen you own something, it’s likely a capital asset. Capital assets are anything you own for personal use or as an investment. It could be a sofa, a car, your home, a stock, a bond, or almost anything else.When you sell it, you either make money or lose money. The difference between what you paid for it and what you sold it for is either a capital gain or a capital loss. (That’s a bit of a simplification since you might have received something as a gift and then sold it.)Depending on how much you made, how long you had it, and a few other factors, you might owe taxes on the capital gain. On the flip side, you might be able to deduct some of your losses.There are two types of capital gains, short-term and long-term.If you own an asset for one year or less, it is short-term. Anything longer than that is long-term.The amount of taxes you may or may not owe depends on how long you have had the asset. It’s called the holding period.To determine your holding period, count from the day after you acquired the asset up to and including the day you got rid of it. That assumes you know the date, but if the asset was a gift, an inheritance, or something else, you might not. (We'll get into those rules in the section about adjusted basis.)The tax rates differ for short- and long-term capital gains. Long-term capital gains are taxed at 0%, 15%, or 20%, depending on your income. Short-term gains are taxed as regular income at 10%, 12%, 22%, 24%, 32%, 35% or 37%.The takeaway for taxpayers: You’re likely to owe less in taxes when you hold an asset for the long term.You owe taxes when you have a net capital gain. Figuring it involves some math.Take your net long-term capital gains for the year and subtract your net short-term capital losses for the year. The result is your net capital gain.So, if you have $15,000 in net long-term capital gains and $5,000 in net short-term capital losses, you would owe capital gains taxes on $10,000. The amount you’d actually pay depends on your overall income — more about that later.Here’s the long-awaited section on an adjusted basis.Basis is what you paid for something. You need that number to figure out a lot of things, including any gains or losses when you sell.If you buy a stock or bond, the basis is the price, plus any commissions and recording or transfer fees. If you have a stock or bond you didn’t buy, you determine its price by looking at the fair market value of the stock or bond on the day it was transferred to you. You can also use the previous owner's adjusted basis if you have it.“A common mistake is either neglecting to factor in cost basis or misreporting it (possibly due to a lack of paperwork to substantiate the basis),” said Garrett Watson, director of Policy Analysis at the Tax Foundation. "[Doing that] could overstate tax liability or, in some cases, understate it if the basis is reported as too high. Getting these details right with thorough documentation is important.”Whether or not you owe taxes on your net capital gain depends on your income level, so the tax rate differs depending on how much you make. The more you make in income, the higher the tax rate on your capital gains.These rates are for taxes due by April 15, 2026 (for assets sold in 2025).Tax rateSingleMarried filing jointlyMarried filing separatelyHead of household$0 to $48,350$0 to $96,700$0 to $48,350$0 to $64,750$48,351 to $533,400$96,701 to $600,050$48,351but to $300,000$64,751 to $566,700$533,401 or more$600,051 or more$300,001 or more$566,701 or moreThese rates are for taxes due by April 15, 2027 (for assets sold in 2026).Tax rateSingleMarried filing jointlyMarried filing separatelyHead of household$0 to $49,450$0 to $98,900$0 to $49,450$0 to $66,200$49,451 to $545,500$98,901 to $613,700$49,451 to $306,850$66,201 to $579,600$545,501 or more$613,701 or more$306,851 or more$579,601 or moreKeep in mind, you don’t usually owe capital gains taxes if your gain is just on paper. You only have to pay when the gain is realized (when you sell the asset). If you haven’t sold it, the gain is unrealized.Read more: Here’s how to calculate capital gains on real estateIf your capital losses exceed your capital gains, you can use them to lower your income. You can claim the lesser of $3,000 or your total net loss.If your net capital losses are more than that limit, you might be able to carry the loss over to later tax years and use it to offset some gains then.If you have capital gains or losses to report on your taxes, you will need to fill out a few forms that will go with your Form 1040 or Form 1040-SR.The first is Form 8949, Sales and other Dispositions of Capital Assets. You use this form to gather all the numbers from any 1099-B or 1099-S statements you receive about stock or other market transactions so you can report that number on your Form 1040.The Form 1099-B is a statement that reports sales from brokerage accounts. The brokerage or financial institution that did the transaction must send you the form, and they also send it to the IRS. Form 1099-S is for real estate transactions.There are two sections: one for short-term gains and another for long-term gains. In both, you’ll need a description of what you sold, when you acquired it and sold it, the cost basis, and any adjustments. From that, you’ll subtract to get the amount of the gains and losses.You’ll add up all of the gains and losses for a total of both kinds of gains.Once you have the totals of both short-term and long-term gains, you’ll transfer those numbers to Schedule D on the Form 1040.Again, there are separate sections to report short-term and long-term gains as well as any carryover losses.At the bottom of the form, you’ll do some math and follow other instructions to get the numbers you’ll put on the Form 1040 or Form 1040-SR.The final step is to take the number you get from this form and put it on line 7 of Form 1040.Note: Consider consulting with a tax professional as calculating capital gains taxes can be complex.Look at the bright side: You made money, even if you have to pay some capital gains taxes. But there are some strategies you can use to reduce those taxes.Since the tax rate is lower for long-term capital gains than for short-term capital gains, it makes sense to try to hold on to an asset for at least a year.You always hear why it’s good to invest in a 401(k) or other retirement plan. Here’s another one: These accounts grow tax-free or tax-deferred, meaning you don’t have to worry about taxes.“Tax associated with short-term gains and dividends are deferred until withdrawals occur in traditional accounts,” Watson from the Tax Foundation explained.This strategy also includes investments in traditional IRAs, Roth IRAs, 529 savings plans, health savings accounts, and others.Learn more: FSA vs. HSA: Which account is right for you? We didn’t talk much about capital gains on home sales, but keeping and using your house as a primary residence for at least two years out of the last five might allow you to exclude some of the gain that comes from a sale of the home.If you qualify, you can exclude up to $250,000 if you’re single or $500,000 if married and filing jointly.Tax-loss harvesting is a strategy where you sell something at a loss to offset gains you made on other investments and then reinvest that money into a similar investment.It’s a complex strategy with many rules and regulations about timing, what you can and can’t invest in, and more. It’s best to get professional advice because if done correctly, you can save a lot of money in taxes.As with many tax concepts, capital gains can be a bit confusing. It’s OK to ask for help.“A tax professional can help determine the proper gross income and cost basis for determining tax owed, which itself can be very helpful and generate tax savings,” Watson said.Another scenario where a professional can help is figuring out the “step up in basis” rule, "where an asset’s cost basis is set at fair market value when it is inherited," Watston explained. "This could still generate a tax bill if there’s a realized gain above that fair market value upon sale, but it may be much less than otherwise expected if someone is not familiar with how step up in basis adjustments work.”A capital gains tax is a tax you pay on the difference between what you paid for an asset and what you made when you sold it.The amount of time you have the asset determines if it is a short-term or long-term gain. One year or less is short-term and longer than a year is long-term.The tax rates are different for short-term and long-term capital gains and depends on your taxable income. Long-term capital gains are taxed at 0%, 15% or 20%. Short-term gains are taxed as regular income either at 10%, 12%, 22%, 24%, 32%, 35% or 37%.You pay capital gains when you sell the investment (realize the sale).